diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 11:27:11 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 19:14:38 +0300 |
commit | 64afb7ca51ef5fd5d4a0afa121183217292daa5e (patch) | |
tree | 3c3b2d4b46d88c51fa4f7426ade870b8c1c1a54a /goreleaser.yml | |
parent | 004bec2e9a8e245ab98924b6d19a89b0fbbe99ee (diff) |
Use revision etc. from debug.BuildInfo
Fixes #9680
Diffstat (limited to 'goreleaser.yml')
-rw-r--r-- | goreleaser.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/goreleaser.yml b/goreleaser.yml index af887e512..0d1389b6a 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -9,7 +9,7 @@ builds: - binary: hugo id: hugo - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=0 flags: @@ -32,7 +32,7 @@ builds: - binary: hugo id: hugo_unix - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=0 flags: @@ -49,7 +49,7 @@ builds: binary: hugo id: hugo_extended_windows ldflags: - - -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio + - -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio - "-extldflags '-static'" env: - CGO_ENABLED=1 @@ -66,7 +66,7 @@ builds: - amd64 - binary: hugo id: hugo_extended_darwin - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=1 - CC=o64-clang @@ -83,7 +83,7 @@ builds: - arm64 - binary: hugo id: hugo_extended_linux - ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio env: - CGO_ENABLED=1 flags: |