Fix: Baked in version-string empty in build-local
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3ebc896169
commit
391e9a85ce
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ default: generate download_libs
|
|||
build-local: download_libs generate-inner generate-apidocs
|
||||
go build \
|
||||
-buildmode=pie \
|
||||
-ldflags "-s -w -X main.version=$(git describe --tags --always || echo dev)" \
|
||||
-ldflags "-s -w -X main.version=$(shell git describe --tags --always || echo dev)" \
|
||||
-mod=readonly \
|
||||
-trimpath
|
||||
|
||||
|
|
Loading…
Reference in a new issue