Skip to content

Commit

Permalink
build-binaries only builds final binary files
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Pereira <joaod@vmware.com>
  • Loading branch information
joaopapereira authored and sethiyash committed May 5, 2023
1 parent e0db80a commit 867fa31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions hack/build-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 867fa31

Please sign in to comment.