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 .