From cbe615162fc00de2bd3e1505c1f3ae1c48682c92 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Mon, 23 Mar 2020 18:11:56 +0100 Subject: [PATCH] Disable cgo when building the production tarballs Close #28 --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 3b3d9b5e..37403dd6 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -25,7 +25,7 @@ do binary_extension=".exe" fi echo "Building ${supported_arch}…" - GOOS="$os" GOARCH="$arch" go build -trimpath \ + GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 go build -trimpath \ -ldflags="-X github.com/LeSuisse/vault-gpg-plugin/version.GitCommit='$(git rev-parse HEAD)'" \ -o "pkg/${os}_${arch}/vault-gpg-plugin${binary_extension}" done