Added -trimpath to build flags

This commit is contained in:
Seednode 2023-08-30 21:09:10 -05:00
parent 6ff79b1817
commit ba016a86a3
1 changed files with 1 additions and 1 deletions

View File

@ -52,5 +52,5 @@ for platform in "${platforms[@]}"; do
if [ "${GOOS}" == "windows" ]; then
output_name+=".exe"
fi
env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" CGO_ENABLED=0 go build -ldflags "${ld_flags}" -o "builds/${output_name}"
env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" CGO_ENABLED=0 go build -trimpath -ldflags "${ld_flags}" -o "builds/${output_name}"
done