aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-17 09:27:11 +0100
committerBjørn Erik Pedersen <[email protected]>2022-03-17 17:14:38 +0100
commit64afb7ca51ef5fd5d4a0afa121183217292daa5e (patch)
tree3c3b2d4b46d88c51fa4f7426ade870b8c1c1a54a /magefile.go
parent004bec2e9a8e245ab98924b6d19a89b0fbbe99ee (diff)
downloadhugo-64afb7ca51ef5fd5d4a0afa121183217292daa5e.tar.gz
hugo-64afb7ca51ef5fd5d4a0afa121183217292daa5e.zip
Use revision etc. from debug.BuildInfo
Fixes #9680
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go4
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"