Skip to content

Commit

Permalink
build(goreleaser): add -trimpath flag to optimize binary size and rep…
Browse files Browse the repository at this point in the history
…roducibility
  • Loading branch information
yarlson committed Jan 27, 2025
1 parent 7a6c1b4 commit 8271b64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ builds:
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}}

Expand Down

0 comments on commit 8271b64

Please sign in to comment.