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 d0a7e1eCopy full SHA for d0a7e1e
Makefile
@@ -1,5 +1,6 @@
1
.DEFAULT_GOAL := build
2
3
+
4
PKG := github.com/lightninglabs/loop
5
TOOLS_DIR := tools
6
@@ -15,7 +16,7 @@ GOBUILD := GO111MODULE=on go build -v
15
16
GOINSTALL := GO111MODULE=on go install -v
17
GOMOD := GO111MODULE=on go mod
18
-COMMIT := $(shell git describe --abbrev=40 --dirty)
19
+COMMIT := $(shell git describe --abbrev=40 --dirty --tags --long | sed -E 's/.*-g([0-9a-f]{40})(-dirty)?/\1\2/')
20
LDFLAGS := -ldflags "-X $(PKG).Commit=$(COMMIT)"
21
DEV_TAGS = dev
22
0 commit comments