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

Move toolchain registrations to .bazelrc #182

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

Conversation

TvdW
Copy link

@TvdW TvdW commented May 31, 2024

After the migration to bzlmod, the toolchain registration for the module's code and tests ended up in the MODULE.bazel itself, which means it gets carried across to module users. This means it's not possible to choose which toolchains are wanted, and defeats some of the use cases mentioned in README.md.

Moving this to .bazelrc is a workaround that restores the original (pre-bzlmod) behavior.

Fixes #181

After the migration to bzlmod, the toolchain registration for the
module's code and tests ended up in the MODULE.bazel itself, which means
it gets carried across to module users. This means it's not possible to
choose which toolchains are wanted, and defeats some of the use cases
mentioned in README.md.

Moving this to .bazelrc is a workaround that restores the original
(pre-bzlmod) behavior.

Fixes uber#181
@CLAassistant
Copy link

CLAassistant commented May 31, 2024

CLA assistant check
All committers have signed the CLA.

@TvdW
Copy link
Author

TvdW commented May 31, 2024

This is a proposal for a workaround for #181. It gets rid of the problem, but it's not really nice...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bzlmod: hermetic_cc_toolchain>2.2.0 registers toolchains by default
2 participants