Set ldflags for reproducible builds

This commit is contained in:
Paul Tyng
2020-07-06 21:09:27 -04:00
parent f5e4c95ed7
commit 10014f2f05

View File

@@ -7,6 +7,8 @@ builds:
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- freebsd
- openbsd