From 7b34f14d85a090142a045f16edbbf681b5e5fb8e Mon Sep 17 00:00:00 2001 From: "Joe Talerico (rook)" Date: Sun, 17 Dec 2023 13:50:54 -0500 Subject: [PATCH] Fixing go-releaser (#126) Introduced ldflags which add version details. Signed-off-by: Joe Talerico Co-authored-by: Joe Talerico --- .goreleaser.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 80310fe0..d3fbc013 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,7 +15,8 @@ builds: - ppc64le - s390x dir: ./cmd/k8s-netperf/ - + ldflags: + - -X github.com/cloud-bulldozer/go-commons/version.GitCommit={{.Commit}} -X github.com/cloud-bulldozer/go-commons/version.BuildDate={{.Date}} -X github.com/cloud-bulldozer/go-commons/version.Version={{.Version}} archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of uname.