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

"No matching toolchain" for nightly channel in 0.57.1 #3289

Open
the80srobot opened this issue Feb 23, 2025 · 0 comments
Open

"No matching toolchain" for nightly channel in 0.57.1 #3289

the80srobot opened this issue Feb 23, 2025 · 0 comments

Comments

@the80srobot
Copy link

the80srobot commented Feb 23, 2025

When upgrading from rules_rust 0.54.1 to 0.57.1, I noticed that the rust toolchain can no longer be set to the nightly channel, because there are "no matching toolchains". (This is on Bazel 8.0.0)

This works:

rust.toolchain(
    edition = "2021",
    versions = ["1.84.1"],
)

This doesn't:

rust.toolchain(
    edition = "2021",
    versions = ["nightly/2025-01-30"]
)

Or, indeed other ISO dates that used to work.

You get this error:

ERROR: /home/debian/pedro/rednose/BUILD:24:20: While resolving toolchains for target //rednose:rednose (ce83c71): No matching toolchains found for types @@rules_rust+//rust:toolchain_type.
To debug, rerun with --toolchain_resolution_debug='@@rules_rust+//rust:toolchain_type'
For more information on platforms or toolchains see https://bazel.build/concepts/platforms-intro.
ERROR: Analysis of target '//rednose:rednose' failed; build aborted
INFO: Elapsed time: 0.310s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
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

No branches or pull requests

1 participant