hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit c04030b14ccff59ab5eea9f9a06e5d5e3877a8cc
parent f7691fe9652aa12b6c582dea0ae2555e772d1a5f
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 19 Dec 2018 10:01:26 +0100

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

Closes #5539
Closes ##5388

Diffstat:
Mgoreleaser-extended.yml | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/goreleaser-extended.yml b/goreleaser-extended.yml
@@ -16,7 +16,7 @@ builds:
   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 @@ builds:
   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: