-
Notifications
You must be signed in to change notification settings - Fork 888
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
Cargo is not applicable
when using a toolchain specified in rust-toolchain.toml
#3104
Comments
I also encountered a similar problem, through |
Potentially some connection to #3061? Or at least the workaround seems connected. |
Same problem:
It occurs when channel = "1.72". I solved it via setting channel = "1.72.0". |
This may indicate a problem with the major.minor channel aliases. @pietroalbini I think you know about the setup of those? (If not, can you point me at the right place to enquire). |
Use stable-gnu toolchain. then ref : https://rust-lang.github.io/rustup/installation/windows.html |
is not applicable
to the 1.64.0
toolchain
Looks like the problem is still there with the 1.79 channel (#3953)? @jdno There shouldn't be a fundamental difference between the two manifests (1.79 and 1.79.0), right? Update: Just tried on my own Mac and nothing happens: > rustup --version
rustup 1.27.1+366 (4149df642 2024-07-15)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.79.0 (129f3b996 2024-06-10)`
> rustup toolchain install 1.79
info: syncing channel updates for '1.79-aarch64-apple-darwin'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: downloading component 'cargo'
6.4 MiB / 6.4 MiB (100 %) 1.2 MiB/s in 7s
info: downloading component 'clippy'
2.2 MiB / 2.2 MiB (100 %) 622.8 KiB/s in 2s
info: downloading component 'rust-docs'
15.4 MiB / 15.4 MiB (100 %) 5.2 MiB/s in 3s
info: downloading component 'rust-std'
22.7 MiB / 22.7 MiB (100 %) 6.4 MiB/s in 4s
info: downloading component 'rustc'
50.9 MiB / 50.9 MiB (100 %) 9.4 MiB/s in 7s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
15.4 MiB / 15.4 MiB (100 %) 3.8 MiB/s in 2s
info: installing component 'rust-std'
22.7 MiB / 22.7 MiB (100 %) 20.0 MiB/s in 1s
info: installing component 'rustc'
50.9 MiB / 50.9 MiB (100 %) 22.9 MiB/s in 2s
info: installing component 'rustfmt'
1.79-aarch64-apple-darwin installed - rustc 1.79.0 (129f3b996 2024-06-10)
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager
> rustup toolchain install 1.79.0
info: syncing channel updates for '1.79.0-aarch64-apple-darwin'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: downloading component 'cargo'
6.4 MiB / 6.4 MiB (100 %) 3.0 MiB/s in 3s
info: downloading component 'clippy'
2.2 MiB / 2.2 MiB (100 %) 751.4 KiB/s in 2s
info: downloading component 'rust-docs'
15.4 MiB / 15.4 MiB (100 %) 1.1 MiB/s in 23s
info: downloading component 'rust-std'
22.7 MiB / 22.7 MiB (100 %) 4.1 MiB/s in 7s
info: downloading component 'rustc'
50.9 MiB / 50.9 MiB (100 %) 6.4 MiB/s in 10s
info: downloading component 'rustfmt'
1.6 MiB / 1.6 MiB (100 %) 737.6 KiB/s in 2s
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
15.4 MiB / 15.4 MiB (100 %) 4.0 MiB/s in 2s
info: installing component 'rust-std'
22.7 MiB / 22.7 MiB (100 %) 21.1 MiB/s in 1s
info: installing component 'rustc'
50.9 MiB / 50.9 MiB (100 %) 23.1 MiB/s in 2s
info: installing component 'rustfmt'
1.79.0-aarch64-apple-darwin installed - rustc 1.79.0 (129f3b996 2024-06-10)
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager This could also be an error specific to toolchain files, but I doubt about it... @Rigidity can you see your |
This is bizarre, I can't reproduce it no matter what I do now. I see |
@Rigidity Thanks for letting me know! 👀 In that case I'll put this into #3937 then... FWIW our mitigation in #3635, once completed, should address this problem for you for about 70% of the time. |
I think it might be worth noting that the original issue also coincided with an error saying something like "Could not copy downloaded file to path " when I tried to (re)install 1.79 manually. I'm guessing that it was trying to download Cargo and since it already existed in the destination directory (maybe it was picking the wrong one out of the two?) it failed. So could have been some sort of corruption or race condition. |
@rami3l could you give this issue a better title? |
is not applicable
to the 1.64.0
toolchainis not applicable
when using a toolchain specified in rust-toolchain.toml
Problem
I'm experiencing an issue very similar to #3025
In Nushell, we currently use this in our rust-toolchain.toml:
On my mac, this is now broken:
Strangely enough, if I change
channel = "1.64.0"
tochannel = "1.64"
it fixes the issue but breaks other platforms. It almost seems like there's a naming issue that got published.Steps
Possible Solution(s)
It should be possible to use
rust-toolchain.toml
to request an earlier version of the Rust compiler using the full version number across platforms.Notes
No response
Rustup version
Installed toolchains
The text was updated successfully, but these errors were encountered: