-
Notifications
You must be signed in to change notification settings - Fork 983
Closed as not planned
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Like many others, I hit an issue where things stopped working in CI because latest version of Rustup didn't install the toolchain implicitly anymore.
I reached out to rustup toolchain install
, but looks like it is not exactly equivalent because it didn't install any components mentioned in rust-toolchain.toml
:
56.30 error: "/root/.rustup/toolchains/nightly-2024-12-24-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/Cargo.lock" does not exist, unable to build with the standard library, try:
56.30 rustup component add rust-src --toolchain nightly-2024-12-24-x86_64-unknown-linux-gnu
Steps
- Have
rust-toolchain.toml
withcomponents = ["rust-src"]
- Run
rustup toolchain install
I expect for toolchain to be installed with all components and targets to be installed too.
Right now components and targets do not seem to be installed.
Possible Solution(s)
No response
Notes
It'd be amazing if I could also install rustup itself with --default-toolchain none
and simply rely on rustup toolchain install
so I don't have to duplicate the version in multiple places of the project.
Rustup version
rustup 1.28.0 (6e19fbec7 2025-03-02)
Installed toolchains
-
OS version
Ubuntu 24.04
crepererum, Palkovsky, jschlumpp, Kobzol, cyliu0 and 4 more