Skip to content

Commit d73632a

Browse files
committed
Makefile: add shushtar prefix to commit version
The version string on boot up displays the lnd version hard coded in lnd/build/version.go but the commit of shushtar (currently v0.1.0-alpa.rcX). This could be confusing to users, why the second version is completely different. I added the prefix "shushtar-" to the commit to make it clear it is referencing the shushtar repo. We also fix the Makefile to properly compile in the commit hash.
1 parent b09f0f8 commit d73632a

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
@@ -14,6 +14,7 @@ GOACC_BIN := $(GO_BIN)/go-acc
1414
STATIK_BIN := $(GO_BIN)/statik
1515

1616
COMMIT := $(shell git describe --abbrev=40 --dirty --tags)
17+
COMMIT_HASH := $(shell git rev-parse HEAD)
1718

1819
LINT_COMMIT := v1.18.0
1920
GOACC_COMMIT := ddc355013f90fea78d83d3a6c71f1d37ac07ecd5
@@ -40,7 +41,7 @@ include make/release_flags.mk
4041
# We only return the part inside the double quote here to avoid escape issues
4142
# when calling the external release script. The second parameter can be used to
4243
# add additional ldflags if needed (currently only used for the release).
43-
make_ldflags = $(2) -X $(LND_PKG)/build.Commit=$(COMMIT) \
44+
make_ldflags = $(2) -X $(LND_PKG)/build.Commit=shushtar-$(COMMIT) \
4445
-X $(LND_PKG)/build.CommitHash=$(COMMIT_HASH) \
4546
-X $(LND_PKG)/build.GoVersion=$(GOVERSION) \
4647
-X $(LND_PKG)/build.RawTags=$(shell echo $(1) | sed -e 's/ /,/g')

0 commit comments

Comments
 (0)