From c2c0614795a0aaef4e69883b995ce3b61ebf0880 Mon Sep 17 00:00:00 2001 From: Heathcliff Date: Fri, 3 Jan 2025 09:55:27 +0100 Subject: [PATCH] Remove full source code path information from binary Signed-off-by: Heathcliff --- hack/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index 866a4a3..3b7a59f 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -28,4 +28,4 @@ fi pushd "${base_dir}" >/dev/null echo "Building $(basename "${output_name}")" -GOOS="${GOOS}" GOARCH="${GOARCH}" CGO_ENABLED=0 go build -ldflags="${GO_LD_FLAGS}" -o "${output_name}" ./cmd/... +GOOS="${GOOS}" GOARCH="${GOARCH}" CGO_ENABLED=0 go build -ldflags="${GO_LD_FLAGS}" -trimpath -o "${output_name}" ./cmd/...