From ba016a86a3c6c9853e60b4cdadfee0a47e8b00b2 Mon Sep 17 00:00:00 2001 From: Seednode Date: Wed, 30 Aug 2023 21:09:10 -0500 Subject: [PATCH] Added -trimpath to build flags --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 17ee959..50553cd 100755 --- a/build.sh +++ b/build.sh @@ -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