-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use CGO_ENABLED=1 when building natively on darwin #11976
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jwhonce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
CI :'( |
Yeah, this is what I was afraid of. And the sentiment I've run into generally is that CGO is evil and bad and should be avoided at all costs 😕 Looking at the diff, I wonder if the conditional is needed at all. I think you can simply set In case it helps you cycle faster: You can temporarily trick CI into only running certain tasks by making them |
Maybe it doesn't help, but there is a native mDNS package available: https://pkg.go.dev/github.com/hashicorp/mdns S'pose a call to it would need to be grafted in every single damn place a name-lookup is made 😕 But then at least CGO isn't needed 😁 |
Need to use CGO for mDNS resolution, but cross builds need CGO disabled See golang/go#12524 for details Note: Homebrew forumla will need to be updated to pick up this change Fixes containers#10737 Signed-off-by: Jhon Honce <[email protected]>
LGTM |
/lgtm |
@ashley-cui Can we get a new brew build done of podman for MAC? |
@jwhonce could we get this backported into 3.4 please? |
@zeha open a PR. |
Backport #11976 to 3.4
Need to use CGO for mDNS resolution, but cross builds need CGO disabled
See golang/go#12524 for details
Note: Homebrew forumla will need to be updated to pick up this change
Fixes #10737
Signed-off-by: Jhon Honce [email protected]
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer: