提交 24b20099 编写于 作者: A Alessandro Arzilli 提交者: Derek Parker

makefile: use git's $Id$ instead of setting ver.Build in makefile (#807)

上级 c67986ed
pkg/version/version.go ident
......@@ -2,13 +2,10 @@
UNAME=$(shell uname)
PREFIX=github.com/derekparker/delve
GOVERSION=$(shell go version)
BUILD_SHA=$(shell git rev-parse HEAD)
LLDB_SERVER=$(shell which lldb-server)
ifeq "$(UNAME)" "Darwin"
BUILD_FLAGS=-ldflags="-s -X main.Build=$(BUILD_SHA)"
else
BUILD_FLAGS=-ldflags="-X main.Build=$(BUILD_SHA)"
BUILD_FLAGS=-ldflags="-s"
endif
# Workaround for GO15VENDOREXPERIMENT bug (https://github.com/golang/go/issues/11659)
......
......@@ -13,7 +13,10 @@ type Version struct {
var (
// DelveVersion is the current version of Delve.
DelveVersion = Version{Major: "0", Minor: "12", Patch: "2", Metadata: ""}
DelveVersion = Version{
Major: "0", Minor: "12", Patch: "2", Metadata: "",
Build: "$Id$",
}
)
func (v Version) String() string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册