Skip to content

Instantly share code, notes, and snippets.

@caarlos0
Created March 26, 2022 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caarlos0/6fc2295e09086e2f0cdf31b67592f7d3 to your computer and use it in GitHub Desktop.
Save caarlos0/6fc2295e09086e2f0cdf31b67592f7d3 to your computer and use it in GitHub Desktop.
reproducible builds with goreleaser
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
gomod:
proxy: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment