From aec832739ad2c21d6338b696e645a9b76cb8e4e5 Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Mon, 28 Feb 2022 15:00:34 -0800 Subject: [PATCH] Fix .goreleaser.yml Signed-off-by: Eric Chlebek --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index b508573..21fdf43 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ builds: - # First Build env: - CGO_ENABLED=0 - main: main.go + main: . ldflags: '-s -w -X github.com/sensu-community/sensu-plugin-sdk/version.version={{.Version}} -X github.com/sensu-community/sensu-plugin-sdk/version.commit={{.Commit}} -X github.com/sensu-community/sensu-plugin-sdk/version.date={{.Date}}' # Set the binary output location to bin/ so archive will comply with Sensu Go Asset structure binary: bin/{{ .ProjectName }}