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

rust-toolchain.toml is not used for rustup toolchain install #4216

Open
2 tasks done
Tracked by #4231 ...
nazar-pc opened this issue Mar 4, 2025 · 0 comments
Open
2 tasks done
Tracked by #4231 ...

rust-toolchain.toml is not used for rustup toolchain install #4216

nazar-pc opened this issue Mar 4, 2025 · 0 comments
Labels

Comments

@nazar-pc
Copy link

nazar-pc commented Mar 4, 2025

Verification

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

  1. Have rust-toolchain.toml with components = ["rust-src"]
  2. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant