mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
build: use the stripped commit hash for the embedded commit string
This commit is contained in:
parent
46b4f56766
commit
f72cdde58f
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -15,7 +15,7 @@ GOBUILD := GO111MODULE=on go build -v
|
|||
GOINSTALL := GO111MODULE=on go install -v
|
||||
GOMOD := GO111MODULE=on go mod
|
||||
|
||||
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/')
|
||||
LDFLAGS := -ldflags "-X $(PKG).Commit=$(COMMIT)"
|
||||
DEV_TAGS = dev
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue