shithub: hugo

Download patch

ref: c04030b14ccff59ab5eea9f9a06e5d5e3877a8cc
parent: f7691fe9652aa12b6c582dea0ae2555e772d1a5f
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Dec 19 05:01:26 EST 2018

releaser: Get ldflags for build date etc. in line for all builds

Closes #5539
Closes ##5388

--- a/goreleaser-extended.yml
+++ b/goreleaser-extended.yml
@@ -16,7 +16,7 @@
   goarch:
     - amd64
 - binary: hugo
-  ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
+  ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }}
   env:
     - CGO_ENABLED=1
     - CC=o64-clang
@@ -29,7 +29,7 @@
   goarch:
     - amd64
 - binary: hugo
-  ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
+  ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }}
   env:
     - CGO_ENABLED=1
   flags: