diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5b6031dc17fc..551922a79bb7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -22,7 +22,10 @@ builds: mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}' env: &build-env - CGO_ENABLED=0 + gcflags: + - -trimpath ldflags: &build-ldflags | + -buildid= -w -s -extldflags '-static'