We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e946c commit 2a495acCopy full SHA for 2a495ac
1 file changed
Makefile
@@ -1,6 +1,6 @@
1
testserver:
2
go run -ldflags="-X 'main.VERSION=test'" ./cmd/lcode-hub
3
build:
4
- go build -ldflags="-X 'main.VERSION=$$(git describe --tags --exact-match || git symbolic-ref -q --short HEAD)' -s -w" -o lcode-hub ./cmd/lcode-hub
+ go build -ldflags="-X 'main.VERSION=$$(git describe --tags --always --dirty | cut -c2-)' -s -w" -o lcode-hub ./cmd/lcode-hub
5
build-with-upx: build
6
upx lcode-hub
0 commit comments