Skip to content

Commit d0a7e1e

Browse files
committed
build: use the stripped commit hash for the embedded commit string
1 parent 46b4f56 commit d0a7e1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DEFAULT_GOAL := build
22

3+
34
PKG := github.com/lightninglabs/loop
45
TOOLS_DIR := tools
56

@@ -15,7 +16,7 @@ GOBUILD := GO111MODULE=on go build -v
1516
GOINSTALL := GO111MODULE=on go install -v
1617
GOMOD := GO111MODULE=on go mod
1718

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/')
1920
LDFLAGS := -ldflags "-X $(PKG).Commit=$(COMMIT)"
2021
DEV_TAGS = dev
2122

0 commit comments

Comments
 (0)