From 391e9a85ce6dae13018d68ec0c549a68c72bf048 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 8 Dec 2023 10:20:41 +0100 Subject: [PATCH] Fix: Baked in version-string empty in build-local Signed-off-by: Knut Ahlers --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2037643..63f86f8 100644 --- a/Makefile +++ b/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