Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CGO_ENABLED=0 to produce static binaries on linux #2470

Merged
merged 1 commit into from
May 24, 2023

Conversation

danielrbradley
Copy link
Member

@danielrbradley danielrbradley commented May 24, 2023

  • Set CGO_ENABLED=0 to produce static binaries when building on linux
  • Build and capture dist assets during acceptance testing

Fixes #2469

Output from running file on each outputted dist binary:

pulumi-resource-azure-native-v1.102.1-alpha.1684934762+49b6f590-windows-amd64/pulumi-resource-azure-native.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
pulumi-resource-azure-native-v1.102.1-alpha.1684934762+49b6f590-linux-amd64/pulumi-resource-azure-native: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=Y1JtfYh0sBrx34x0jrAs/tj_h-u27enx_NawRQhA9/NUd9FzFJ4cQHDfDjUAdf/W2QMQ1f9EOxsOQHKUBZp, with debug_info, not stripped
pulumi-resource-azure-native-v1.102.1-alpha.1684934762+49b6f590-linux-arm64/pulumi-resource-azure-native: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=HuOYpR6T9sMc5bq9lJ18/W6Mu09gDr4vGQ2jemqTo/FSKHw550ytU1K2PiD3HS/N1dpc69XKzV_CrYNWfop, with debug_info, not stripped
pulumi-resource-azure-native-v1.102.1-alpha.1684934762+49b6f590-darwin-amd64/pulumi-resource-azure-native: Mach-O 64-bit executable x86_64
pulumi-resource-azure-native-v1.102.1-alpha.1684934762+49b6f590-darwin-arm64/pulumi-resource-azure-native: Mach-O 64-bit executable arm64

@danielrbradley danielrbradley self-assigned this May 24, 2023
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

- Set CGO_ENABLED=0 to produce static binaries when building on linux
- Build and capture dist assets during acceptance testing
@danielrbradley danielrbradley merged commit 6472658 into master May 24, 2023
13 checks passed
@danielrbradley danielrbradley deleted the static-binaries branch May 24, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading pulumi provider plugin version cause error: resource-azure-native: plugin not found
2 participants