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 DetailsNeeds 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 podman-container-tools#10737 Signed-off-by: Jhon Honce <jhonce@redhat.com>
|
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 jhonce@redhat.com
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer: