-
Notifications
You must be signed in to change notification settings - Fork 435
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
Provide a mechanism for disabling toolchain registration when using bzlmod. #2818
Comments
#2819 Implements a mechanism for inhibiting the registration of default rust toolchains. It does not address:
proto, prost, and bindgen toolchains are directly referenced instead of going through an extension. They would probably need to follow the same pattern as rust_toolchains to allow for disabling their registration. The host_tools and cargo_bazel_bootstrap repositories are a bit trickier as rules_rust references these repos internally. |
Partial fix for #2818
Some projects want to vendor and tightly control their toolchains. With
rules_rust
always registering toolchains when used through blzmod, it is easy to misconfigure a project's toolchain configuration and accidentally fallback on therules_rust
toolchains without knowing. Providing a way to explicitly disable therules_rust
toolchains would turn this case into and error instead of a silent fallback.The text was updated successfully, but these errors were encountered: