We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b4f56 commit f72cddeCopy full SHA for f72cdde
Makefile
@@ -15,7 +15,7 @@ GOBUILD := GO111MODULE=on go build -v
15
GOINSTALL := GO111MODULE=on go install -v
16
GOMOD := GO111MODULE=on go mod
17
18
-COMMIT := $(shell git describe --abbrev=40 --dirty)
+COMMIT := $(shell git describe --abbrev=40 --dirty | sed -E 's/.*-g([0-9a-f]{40})(-dirty)?/\1\2/')
19
LDFLAGS := -ldflags "-X $(PKG).Commit=$(COMMIT)"
20
DEV_TAGS = dev
21
0 commit comments