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

[cmd/builder] Disable CGO by default #10028

Open
evan-bradley opened this issue Apr 24, 2024 · 0 comments
Open

[cmd/builder] Disable CGO by default #10028

evan-bradley opened this issue Apr 24, 2024 · 0 comments
Labels
area:builder enhancement New feature or request

Comments

@evan-bradley
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When using a binary output by the builder with no options, I can't use it by default in a scratch image unless it is compiled with CGO_ENALBED=0.

Describe the solution you'd like
Turn off CGO by default in the builder. Allow users to enable it through setting the CGO_ENABLED environment variable.

Additional context
Our contributing guidelines forbid using CGO, and no upstream components I'm aware of use it. We also have CGO_ENABLED=0 set anywhere we build Collector binaries in upstream repositories.

Users have also run into this before: #6373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:builder enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant