Archived
1
0

add git version to srnd version string

This commit is contained in:
Jeff Becker
2017-09-24 08:10:35 -04:00
parent a85622854b
commit dee8c005fd
3 changed files with 10 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ assert-go:
test $(VERSION) = go1.9
srndv2: assert-go
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -v
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -v
clean:
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) clean -v