We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7be8c77 commit fc412a5Copy full SHA for fc412a5
Makefile
@@ -1,3 +1,8 @@
1
+VERSION ?= $(shell git describe --tags --always --match=v* 2> /dev/null || cat $(CURDIR)/.version 2> /dev/null || echo v0)
2
+VERSION_HASH = $(shell git rev-parse HEAD)
3
+
4
+MODULE = $(shell env GO111MODULE=on go list -m)
5
6
LDFLAGS += -X "$(MODULE)/version.Version=$(VERSION)" -X "$(MODULE)/version.CommitSHA=$(VERSION_HASH)"
7
8
go = GOGC=off go
0 commit comments