-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix(darwin): remove the need for cgo when building a darwin binary on linux #23507
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
Conversation
…elease Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…elease Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
… linux Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rwin # Conflicts: # .goreleaser.yaml
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23507 +/- ##
==========================================
- Coverage 60.25% 60.24% -0.02%
==========================================
Files 344 345 +1
Lines 59084 59084
==========================================
- Hits 35604 35597 -7
- Misses 20611 20613 +2
- Partials 2869 2874 +5 ☔ View full report in Codecov by Sentry. |
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.
Overall the change looks good!! I like the way of using flags with go:build
in each file.
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.
LGTM
/cherry-pick release-3.1 |
… linux (#23507) Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
… linux (argoproj#23507) Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
/cherry-pick release-3.0 |
… linux (#23507) Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
… linux (argoproj#23507) Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> Signed-off-by: enneitex <etienne.divet@gmail.com>
Background
After merging in Azure go modules, we have to enable CGO to build the Darwin binary of the Argo CD CLI. That broke goreleaser because CGO wasn't enabled in our CI templates. I attempted to enable CGO for only Darwin builds, but the Linux VMs that the builds run on do not have the Darwin C headers to compile a CGO enabled Darwin binary.
Testing
goreleaser syntax is correct
goreleaser can create all the binaries on a Darwin machine
I can run both versions and they give the expected output
Checklist: