From 7c58e29799a00342a5a997c9c5fd35a4b9d7e9ff Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Wed, 10 Dec 2025 15:27:57 +0100 Subject: [PATCH] Corrected build.sh. --- build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 5eb7929..ec56ccf 100755 --- a/build.sh +++ b/build.sh @@ -4,10 +4,8 @@ VERSION=$(git describe --tags --always 2>/dev/null) if [ ! -z "$VERSION" ]; then echo "Building version: $VERSION" - LDFLAGS="-ldflags \"-X main.Version=$VERSION\"" + go build -o test-version -ldflags "-X main.Version=$VERSION" else echo "Building without version information" - LDFLAGS="" + go build -o test-version . fi - -go build $LDFLAGS -o test-version .