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/...