Skip to content

Commit eeb45f1

Browse files
authored
Merge pull request #1119 from FactomProject/develop
fix: missing leading 'v' in binary names
2 parents 7614d6f + f11d445 commit eeb45f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
REVISION = $(shell git describe --tags | cut -c 2-)
2-
$(info Make factomd v$(REVISION))
1+
REVISION = $(shell git describe --tags)
2+
$(info Make factomd $(REVISION))
33

4-
LDFLAGS = "-s -w -X github.com/FactomProject/factomd/engine.Build=`git rev-parse HEAD` -X github.com/FactomProject/factomd/engine.FactomdVersion=$(REVISION)"
4+
# Strip leading 'v'
5+
VERSION = $(shell echo $(REVISION) | cut -c 2-)
6+
LDFLAGS = "-s -w -X github.com/FactomProject/factomd/engine.Build=`git rev-parse HEAD` -X github.com/FactomProject/factomd/engine.FactomdVersion=$(VERSION)"
57

68
build:
79
go build -trimpath -ldflags $(LDFLAGS) -v

0 commit comments

Comments
 (0)