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

Release MacOS with CGO enabled #523

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Conversation

dbussink
Copy link
Collaborator

This updates the goreleaser usage to use https://github.com/goreleaser/goreleaser-cross which provides a cross compilation toolchain so we can enable CGO for the MacOS binary.

planetscale/discussion#181 talks more about the issue this helps with which was also reported upstream in golang/go#52839 and I suspect golang/go#43398 is also very related.

We can work around this by building with CGO_ENABLED=1 but we do need a cross compilation setup which https://github.com/goreleaser/goreleaser-cross provides.

@dbussink dbussink requested a review from a team as a code owner June 29, 2022 10:51
Makefile Outdated Show resolved Hide resolved
@dbussink dbussink force-pushed the dbussink/release-macos-cgo-enabled branch from e93695b to 13699bc Compare June 29, 2022 11:44
@dbussink dbussink merged commit 9104a26 into main Jun 29, 2022
@dbussink dbussink deleted the dbussink/release-macos-cgo-enabled branch June 29, 2022 11:50
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