-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix: CGO_ENABLED #22682
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
base: master
Are you sure you want to change the base?
fix: CGO_ENABLED #22682
Conversation
Signed-off-by: sivchari <[email protected]>
❌ Preview Environment undeployed from BunnyshellAvailable commands (reply to this comment):
|
There was a discussion around this in the community meeting, and there was pushback. I believe this PR allows for the ability to supply Maybe @leoluz or @agaudreault can add their thoughts. |
Okay, but make run or make run-local was failed when I executed it in local machine on Darwin/Arm64. Should I make CGO enabled explicit if I want to succeed this task in local ? |
CGO_FLAG=1 STATIC_BUILD=false make mentioned in #22437 hasn't been documented in https://argo-cd.readthedocs.io/en/latest/developer-guide/running-locally/ . |
@leoluz @rumstead @agaudreault |
I came across issues running some make targets on mac recently. I went back and forth about making these changes and decided not to because these are changes wrt to user's personal dev setup and there isn't just one way to handle it, and they are not issues with all mac but the newer non-intel ones. However if you can word it better, I'm sure it'll be appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from my previous comment, looking at the code in the PR - I wouldn't set CGO_FLAG based on CGO_ENABLED, because in the rest of the makefile CGO_ENABLED is based on CGO_FLAG. So can just focus on setting CGO_FLAG as mentioned in the comment on line 7
Not sure on this one, either making default or documenting. I was under the impression that this was a problem with one of the lib (something azure related), and this was temporary until the upstream lib is fixed. I would rather wait until the lib is fixed instead of introducing new code or doc. Sadly, the new contributor experience is degraded, but hopefully the temporary fix is easy to fid when looking up the error message. |
Checklist:
If we run Argo CD on OSX/Darwin, the CGO_ENABLED is set to 1 automatically.