Skip to content

Commit

Permalink
Disable cgo when building the production tarballs
Browse files Browse the repository at this point in the history
Close #28
  • Loading branch information
LeSuisse committed Mar 23, 2020
1 parent 3747bf1 commit cbe6151
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 -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
Expand Down

0 comments on commit cbe6151

Please sign in to comment.