Skip to content

Commit

Permalink
fix: Build static MacOS releases (#3585)
Browse files Browse the repository at this point in the history
It is strongly recommened to build statically linked binaries for MacOS
in the community. Switching to dynamic builds for MacOS given this
guidance, and the failure in building static binaries.
  • Loading branch information
rquitales committed Sep 27, 2022
1 parent be711ee commit 23f392c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -linkmode external -extldflags "-static"
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

- id: darwin-arm64
goos:
Expand All @@ -41,7 +41,7 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -linkmode external -extldflags "-static"
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

- id: linux-amd64
goos:
Expand Down

0 comments on commit 23f392c

Please sign in to comment.