We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba1b39 commit e4fd4f6Copy full SHA for e4fd4f6
1 file changed
Makefile
@@ -1,5 +1,6 @@
1
testserver:
2
go run -ldflags="-X 'main.VERSION=test'" ./cmd/lcode-hub
3
build:
4
- go build -ldflags="-X 'main.VERSION=build'" -ldflags="-s -w" -o lcode-hub ./cmd/lcode-hub
+ 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
5
+build-with-upx: build
6
upx lcode-hub
0 commit comments