diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 09:27:11 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 17:14:38 +0100 |
commit | 64afb7ca51ef5fd5d4a0afa121183217292daa5e (patch) | |
tree | 3c3b2d4b46d88c51fa4f7426ade870b8c1c1a54a /magefile.go | |
parent | 004bec2e9a8e245ab98924b6d19a89b0fbbe99ee (diff) | |
download | hugo-64afb7ca51ef5fd5d4a0afa121183217292daa5e.tar.gz hugo-64afb7ca51ef5fd5d4a0afa121183217292daa5e.zip |
Use revision etc. from debug.BuildInfo
Fixes #9680
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/magefile.go b/magefile.go index a406664cb..c016a57e4 100644 --- a/magefile.go +++ b/magefile.go @@ -25,10 +25,10 @@ import ( const ( packageName = "github.com/gohugoio/hugo" - noGitLdflags = "-X $PACKAGE/common/hugo.buildDate=$BUILD_DATE" + noGitLdflags = "-X github.com/gohugoio/hugo/common/hugo.vendorInfo=mage" ) -var ldflags = "-X $PACKAGE/common/hugo.commitHash=$COMMIT_HASH -X $PACKAGE/common/hugo.buildDate=$BUILD_DATE" +var ldflags = noGitLdflags // allow user to override go executable by running as GOEXE=xxx make ... on unix-like systems var goexe = "go" |