From c04030b14ccff59ab5eea9f9a06e5d5e3877a8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 19 Dec 2018 10:01:26 +0100 Subject: [PATCH] releaser: Get ldflags for build date etc. in line for all builds Closes #5539 Closes ##5388 --- goreleaser-extended.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goreleaser-extended.yml b/goreleaser-extended.yml index e7fe2779b..8be278880 100644 --- 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: