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=1 for arm64 build #1075

Merged
merged 3 commits into from
May 17, 2023

Conversation

charliecruzan-stripe
Copy link
Contributor

@charliecruzan-stripe charliecruzan-stripe commented May 17, 2023

Reviewers

cc @stripe/developer-products

Summary

In #608, we added a new build for arm64, but had to exclude CGO_ENABLED=1 because:

because we can't run GitHub Actions on macos11, I had to remove the CGO build environment variable, otherwise the build step fails saying it's an unsupported environment

And since keyring requires cgo for keychain, without that flag we had to have 2 different codepaths depending on the architecture (specifically, depending on CGO_ENABLED=0 or =1). Now, in both cases, we have CGO_ENABLED=1, so we don't need those divergent code paths anymore.

@charliecruzan-stripe charliecruzan-stripe marked this pull request as ready for review May 17, 2023 20:29
@charliecruzan-stripe charliecruzan-stripe requested a review from a team as a code owner May 17, 2023 20:29
Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for fixing this!

Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for fixing this!

@charliecruzan-stripe charliecruzan-stripe merged commit e69b087 into master May 17, 2023
@charliecruzan-stripe charliecruzan-stripe deleted the charliecruzan/enable-cgo-arm64 branch May 17, 2023 21:36
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.

2 participants