From ece8987028b1951de9dafddfc9d2e0733a61e04b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 29 Jul 2020 11:05:45 +0200 Subject: [PATCH] .goreleaser.yml: Add LDFLAGS goreleaser was missing ldflags, so the binaries produced and added to the release did not include version information. --- .goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 67bc096fd5..eae0a34e36 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,6 +15,10 @@ builds: - 7 env: - CGO_ENABLED=0 + ldflags: + - "-X github.com/cloudnativelabs/kube-router/pkg/cmd.version={{.Version}}" + - "-X github.com/cloudnativelabs/kube-router/pkg/cmd.buildDate={{.Date}}" + archives: - format: tar.gz