From 005718e48ac2ce58812ec8f0ab36a81bb33fc139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Fri, 22 Sep 2023 11:27:17 -0500 Subject: [PATCH] Another fix on the build/release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira --- .goreleaser.yml | 3 --- hack/build-binaries.sh | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1c39648..d727d75 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,9 +15,6 @@ builds: flags: - -trimpath - ldflags: - - -X github.com/k14s/kwt/pkg/kwt/version.Version={{ .Version }} - archives: - format: binary name_template: >- diff --git a/hack/build-binaries.sh b/hack/build-binaries.sh index 733172e..bbefe76 100755 --- a/hack/build-binaries.sh +++ b/hack/build-binaries.sh @@ -2,9 +2,9 @@ set -e -x -u -GOOS=darwin GOARCH=amd64 go build -o kwt-darwin-amd64 ./cmd/... -GOOS=darwin GOARCH=arm64 go build -o kwt-darwin-arm64 ./cmd/... -GOOS=linux GOARCH=amd64 go build -o kwt-linux-amd64 ./cmd/... -GOOS=linux GOARCH=arm64 go build -o kwt-linux-arm64 ./cmd/... +GOOS=darwin GOARCH=amd64 go build -trimpath -o kwt-darwin-amd64 ./cmd/... +GOOS=darwin GOARCH=arm64 go build -trimpath -o kwt-darwin-arm64 ./cmd/... +GOOS=linux GOARCH=amd64 go build -trimpath -o kwt-linux-amd64 ./cmd/... +GOOS=linux GOARCH=arm64 go build -trimpath -o kwt-linux-arm64 ./cmd/... shasum -a 256 ./kwt-*