From f7c95f95b41592c72465073448ace88483a315da Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sat, 16 Apr 2022 21:29:59 -0700 Subject: [PATCH] Fix the ldflags attempt #2 --- Makefile | 2 +- scripts/client-ldflags | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5ae5097..f095d80 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ acttest: release: expr `cat VERSION` + 1 > VERSION git add VERSION - git commit -m "Bump hishtory version" + git commit -m "Bump hishtory version to `cat VERSION`" git tag v0.`cat VERSION` git push git push --tags diff --git a/scripts/client-ldflags b/scripts/client-ldflags index 50e2816..4097ec9 100755 --- a/scripts/client-ldflags +++ b/scripts/client-ldflags @@ -1,4 +1,4 @@ #!/usr/bin/env bash GIT_HASH=$(git rev-parse HEAD) -echo "-X main.GitCommit=$GIT_HASH -X lib.Version=`cat VERSION` -w -extldflags \"-static\"" +echo "-X main.GitCommit=$GIT_HASH -X github.com/ddworken/hishtory/client/lib.Version=`cat VERSION` -w -extldflags \"-static\""