You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recommended toolchain install command line isn't exactly right #4212
In the behavior introduced in the latest release, the error message if you don't have the toolchain installed is not actually correct if your rust-toolchain.toml file formerly triggered the installation of more than just a toolchain. This is common in cross-compile situations with the targets key.
rustup 1.28 tells me:
[cbiffle@gwydion soundlaser-rs]$ cargo build
error: toolchain '1.85.0-x86_64-unknown-linux-gnu' is not installed
help: run `rustup toolchain install 1.85.0-x86_64-unknown-linux-gnu` to install it
...but that's not actually correct, because that does not install the targets listed in the toml. cargo build fails.
On the other hand, rustup toolchain install with no arguments does the right thing.
Now, run the exact command from the error that displays.
Now, try cargo build again.
Possible Solution(s)
In the event that the command is failing in a directory with a (valid) rust-toolchain.toml, perhaps the error message should suggest the no-argument version of rustup toolchain install.
Notes
No response
Rustup version
rustup 1.28.0 (6e19fbec7 2025-03-02)info: This is the version for the rustup toolchain manager, not the rustc compiler.info: The currently active `rustc` version is `rustc 1.85.0 (4d91de4e4 2025-02-17)`
Installed toolchains
Many.
OS version
Linux gwydion 6.9.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000 x86_64 GNU/Linux
@cbiffle Thanks for filing this issue! Actually this point has been considered in my original implementation and should have been shipped as a part of v1.28.0, however it will sometimes trigger infinite recursion so I pulled it back. I'll definitely give it another look.
Activity
ZKVM-1176: Add `rustup toolchain install` step to `rustup` action (#2915
rami3l commentedon Mar 18, 2025
@cbiffle Thanks for filing this issue! Actually this point has been considered in my original implementation and should have been shipped as a part of v1.28.0, however it will sometimes trigger infinite recursion so I pulled it back. I'll definitely give it another look.
ZKVM-1176: Add `rustup toolchain install` step to `rustup` action (ri…
Dustin4444 commentedon Mar 27, 2025