Skip to content

Commit

Permalink
build statically linked binaries with CGO disabled (#657)
Browse files Browse the repository at this point in the history
In #632 we switched the build
from running on MacOS to Ubuntu. On MacOS CGO is disabled by default,
and switching to Ubuntu means this is turned on. We however want to
build statically linked binaries since they are easier to deal with. Set
that up in the goreleaser.yml explicitly.
  • Loading branch information
tgummerer authored Oct 8, 2024
1 parent d574b2b commit c872650
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Bug Fixes-657.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
component: runtime
kind: Bug Fixes
body: Build statically linked release binary with CGO disabled
time: 2024-10-08T16:41:00.728884753+02:00
custom:
PR: "657"
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ archives:
builds:
- id: pulumi-language-yaml
binary: pulumi-language-yaml
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
Expand All @@ -31,6 +33,8 @@ builds:
main: ./cmd/pulumi-language-yaml/
- id: pulumi-converter-yaml
binary: pulumi-converter-yaml
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
Expand Down

0 comments on commit c872650

Please sign in to comment.