Fix: Baked in version-string empty in build-local

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-12-08 10:20:41 +01:00
parent 3ebc896169
commit 391e9a85ce
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -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