Skip to content

Do not use crossbuild container when CGO=0 #2943

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alessio-perugini
Copy link
Contributor

@alessio-perugini alessio-perugini commented Jul 3, 2025

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Golang supports cross-building by default. With this PR I propose not to use the crossbuild container of Elastic, when we are building without cgo. This will make our build process faster, and we minimize the dependency on Elastic Container at the bare minimum.

The trigger of this PR is that Elastic seem to have broke the manifest of arm images, and we are now blocked by bumping our go version.

What is the current behavior?

We are always using the elastic crossbuild container

What is the new behavior?

When building without CGO use native golang cross build capabilities

Does this PR introduce a breaking change, and is titled accordingly?

Other information

@alessio-perugini alessio-perugini self-assigned this Jul 3, 2025
@alessio-perugini alessio-perugini requested a review from cmaglie July 3, 2025 19:17
@alessio-perugini alessio-perugini added the topic: build-process Related to the sketch build process label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: build-process Related to the sketch build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant