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
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -6,7 +6,7 @@ default: generate download_libs
build-local: download_libs generate-inner generate-apidocs build-local: download_libs generate-inner generate-apidocs
go build \ go build \
-buildmode=pie \ -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 \ -mod=readonly \
-trimpath -trimpath