Skip to content

Commit

Permalink
chore(reproducibility): add buildid= and trimpath
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Feb 24, 2022
1 parent 7eea98f commit 320d066
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 320d066

Please sign in to comment.