move version info to separate package

This commit is contained in:
Christian Schwarz
2018-08-26 21:57:19 +02:00
parent ee5445777d
commit 428339e1ad
5 changed files with 35 additions and 28 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ ifndef ZREPL_VERSION
$(error cannot infer variable ZREPL_VERSION using git and variable is not overriden by make invocation)
endif
endif
GO_LDFLAGS := "-X github.com/zrepl/zrepl/cmd.zreplVersion=$(ZREPL_VERSION)"
GO_LDFLAGS := "-X github.com/zrepl/zrepl/version.zreplVersion=$(ZREPL_VERSION)"
GO_BUILD := go build -ldflags $(GO_LDFLAGS)