From 3747bf19d7f339271b934b1d6ac0baef03bc71e5 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 1 Mar 2020 18:37:43 +0100 Subject: [PATCH] Build with `-trimpath` to ease reproducibility --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 664f68d8..3b3d9b5e 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 \ + GOOS="$os" GOARCH="$arch" 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