Skip to content

Commit 2a495ac

Browse files
committed
better version
1 parent 12e946c commit 2a495ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
testserver:
22
go run -ldflags="-X 'main.VERSION=test'" ./cmd/lcode-hub
33
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
4+
go build -ldflags="-X 'main.VERSION=$$(git describe --tags --always --dirty | cut -c2-)' -s -w" -o lcode-hub ./cmd/lcode-hub
55
build-with-upx: build
66
upx lcode-hub

0 commit comments

Comments
 (0)