From 867fa316603e3513eef6f73ab186030a44596027 Mon Sep 17 00:00:00 2001 From: Joao Pereira Date: Wed, 5 Apr 2023 16:31:19 -0500 Subject: [PATCH] build-binaries only builds final binary files Signed-off-by: Joao Pereira --- .goreleaser.yml | 3 --- hack/build-binaries.sh | 4 ---- 2 files changed, 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cf89a4591..eaa79c80c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,8 +1,5 @@ # This is an example .goreleaser.yml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com -before: - hooks: - - go mod tidy builds: - env: - CGO_ENABLED=0 diff --git a/hack/build-binaries.sh b/hack/build-binaries.sh index f16b94809..a2fca3928 100755 --- a/hack/build-binaries.sh +++ b/hack/build-binaries.sh @@ -8,10 +8,6 @@ function get_latest_git_tag { VERSION="${1:-`get_latest_git_tag`}" -go fmt ./cmd/... ./pkg/... ./test/... -go mod vendor -go mod tidy - # makes builds reproducible export CGO_ENABLED=0 LDFLAGS="-X github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/cmd.Version=$VERSION"