From c34bdf66f225330def9561505570c3116da6b066 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 21 Jul 2024 17:35:28 +0100 Subject: [PATCH] FINE. I'll hard code it. --- ci-build.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ci-build.sh b/ci-build.sh index ac535e2..73d5a6d 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -1,8 +1,5 @@ #!/usr/bin/env sh -export GO=$(which go) -$GO version - mkdir build GIT_COMMIT=$(git rev-list -1 HEAD) @@ -14,10 +11,10 @@ export VERSION_STRING buildpath="build/$(uname)/gostations" -$GO mod vendor -$GO mod tidy +/usr/local/go/bin/go mod vendor +/usr/local/go/bin/go mod tidy -$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" +/usr/local/go/bin/go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING" "$buildpath" -v