Skip to content

Commit

Permalink
Build with -trimpath to ease reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Mar 1, 2020
1 parent 449f8e5 commit 3747bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3747bf1

Please sign in to comment.