From fa9f57a58b5d3ed7c27d2234d3c1b5632542c3ef Mon Sep 17 00:00:00 2001 From: Frank Zhu Date: Tue, 23 Jan 2024 11:34:40 -0600 Subject: [PATCH] add back ldflags and rename goreleaser config file --- .goreleaser.develop.yaml => .goreleaser.develop.local.yaml | 6 ++++++ 1 file changed, 6 insertions(+) rename .goreleaser.develop.yaml => .goreleaser.develop.local.yaml (94%) diff --git a/.goreleaser.develop.yaml b/.goreleaser.develop.local.yaml similarity index 94% rename from .goreleaser.develop.yaml rename to .goreleaser.develop.local.yaml index f8cfc472ec2..85d81002c12 100644 --- a/.goreleaser.develop.yaml +++ b/.goreleaser.develop.local.yaml @@ -22,6 +22,9 @@ builds: flags: - -trimpath - -buildmode=pie + ldflags: + - -X github.com/smartcontractkit/chainlink/v2/core/static.Version={{ .Env.CHAINLINK_VERSION }} + - -X github.com/smartcontractkit/chainlink/v2/core/static.Sha={{ .FullCommit }} - id: linux-amd64 binary: "{{ .ProjectName }}" @@ -36,6 +39,9 @@ builds: flags: - -trimpath - -buildmode=pie + ldflags: + - -X github.com/smartcontractkit/chainlink/v2/core/static.Version={{ .Env.CHAINLINK_VERSION }} + - -X github.com/smartcontractkit/chainlink/v2/core/static.Sha={{ .FullCommit }} # See https://goreleaser.com/customization/docker/ dockers: