From c7511206a15deebf1c613849435878a75e1524db Mon Sep 17 00:00:00 2001 From: Naveen <172697+naveensrinivasan@users.noreply.github.com> Date: Fri, 29 Oct 2021 18:36:35 -0500 Subject: [PATCH] :seedling: Reproducible builds in goreleaser (#1198) --- .goreleaser.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2feb2de758c..5614c59103c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -19,6 +19,11 @@ builds: # or a plain import path (when using GOPATH). - -trimpath - -tags=netgo + # Set the modified timestamp on the output binary, typically + # you would do this to ensure a build was reproducible. Pass + # empty string to skip modifying the output. + # Default is empty string. + mod_timestamp: '{{ .CommitTimestamp }}' goos: - linux goarch: @@ -41,6 +46,11 @@ builds: # or a plain import path (when using GOPATH). - -trimpath - -tags=netgo + # Set the modified timestamp on the output binary, typically + # you would do this to ensure a build was reproducible. Pass + # empty string to skip modifying the output. + # Default is empty string. + mod_timestamp: '{{ .CommitTimestamp }}' goos: - darwin goarch: @@ -61,6 +71,11 @@ builds: # or a plain import path (when using GOPATH). - -trimpath - -tags=netgo + # Set the modified timestamp on the output binary, typically + # you would do this to ensure a build was reproducible. Pass + # empty string to skip modifying the output. + # Default is empty string. + mod_timestamp: '{{ .CommitTimestamp }}' goos: - windows goarch: