diff options
author | aviau <alexandre@alexandreviau.net> | 2016-06-29 18:41:33 +0000 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-06-29 18:41:33 +0000 |
commit | 3cbe7d40d1d452c7b956d36a80febb3b3e03d090 (patch) | |
tree | af7267975c1631d7014d0df17639c14f89e16a8d | |
parent | af0bc95de5b992b2c483e052eb822b4f5e97cc61 (diff) |
script: Remove build date in genassets.go
The build date prevented the builds from being reproducible.
Debian bug: https://bugs.debian.org/828994
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3363
-rw-r--r-- | script/genassets.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/script/genassets.go b/script/genassets.go index a469706a1..b6f13d59d 100644 --- a/script/genassets.go +++ b/script/genassets.go @@ -15,12 +15,10 @@ import ( "flag" "go/format" "io" - "net/http" "os" "path/filepath" "strings" "text/template" - "time" ) var tpl = template.Must(template.New("assets").Parse(`package auto @@ -29,10 +27,6 @@ import ( "encoding/base64" ) -const ( - AssetsBuildDate = "{{.BuildDate}}" -) - func Assets() map[string][]byte { var assets = make(map[string][]byte, {{.Assets | len}}) {{range $asset := .Assets}} @@ -86,7 +80,6 @@ func walkerFor(basePath string) filepath.WalkFunc { type templateVars struct { Assets []asset - BuildDate string } func main() { @@ -96,7 +89,6 @@ func main() { var buf bytes.Buffer tpl.Execute(&buf, templateVars{ Assets: assets, - BuildDate: time.Now().UTC().Format(http.TimeFormat), }) bs, err := format.Source(buf.Bytes()) if err != nil { |