-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add missing components to rust-toolchain file #7989
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
Add missing components to rust-toolchain file #7989
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @giraffate (or someone else) soon. Please see the contribution instructions for more information. |
Those shouldn't be necessary, because they are installed by default. Did it not install those for you? |
It did not. A fresh clone of this repo followed by a cargo check resulted in several rounds of missing items:
then after adding
then after adding
Perhaps I'm the first to try to build without having previously run |
No running |
https://rust-lang.github.io/rustup/concepts/profiles.html From the rustup documentation: even with the |
I definitely installed the |
Can you try uninstalling the 2021-11-04 toolchain with
and then run
in the unmodified Clippy repository. So just the clean checkout without your patch applied. This should then install the correct toolchain with all it's components. The output for me is: $ rustup show active-toolchain
info: syncing channel updates for 'nightly-2021-11-04-x86_64-unknown-linux-gnu'
info: latest update on 2021-11-04, rust version 1.58.0-nightly (baba6687d 2021-11-03)
info: downloading component 'cargo'
6.2 MiB / 6.2 MiB (100 %) 2.9 MiB/s in 2s ETA: 0s
info: downloading component 'clippy'
info: downloading component 'llvm-tools-preview'
22.0 MiB / 22.0 MiB (100 %) 2.9 MiB/s in 8s ETA: 0s
info: downloading component 'rust-docs'
18.8 MiB / 18.8 MiB (100 %) 3.0 MiB/s in 6s ETA: 0s
info: downloading component 'rust-src'
2.4 MiB / 2.4 MiB (100 %) 1.3 MiB/s in 2s ETA: 0s
info: downloading component 'rust-std'
25.2 MiB / 25.2 MiB (100 %) 3.0 MiB/s in 8s ETA: 0s
info: downloading component 'rustc'
54.5 MiB / 54.5 MiB (100 %) 3.0 MiB/s in 18s ETA: 0s
info: downloading component 'rustc-dev'
107.3 MiB / 107.3 MiB (100 %) 2.6 MiB/s in 40s ETA: 0s
info: downloading component 'rustfmt'
3.9 MiB / 3.9 MiB (100 %) 2.6 MiB/s in 1s ETA: 0s
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'llvm-tools-preview'
22.0 MiB / 22.0 MiB (100 %) 15.4 MiB/s in 1s ETA: 0s
info: installing component 'rust-docs'
18.8 MiB / 18.8 MiB (100 %) 12.1 MiB/s in 1s ETA: 0s
info: installing component 'rust-src'
info: installing component 'rust-std'
25.2 MiB / 25.2 MiB (100 %) 14.0 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
54.5 MiB / 54.5 MiB (100 %) 16.2 MiB/s in 3s ETA: 0s
info: installing component 'rustc-dev'
107.3 MiB / 107.3 MiB (100 %) 14.4 MiB/s in 7s ETA: 0s
info: installing component 'rustfmt'
nightly-2021-11-04-x86_64-unknown-linux-gnu (overridden by '/home/pkrones/rust-lang/rust-clippy/rust-toolchain') |
☔ The latest upstream changes (presumably #7994) made this pull request unmergeable. Please resolve the merge conflicts. |
Also try |
No good leads yet, and I'm unable to replicate it. Maybe I'm being daft, but is there a downside to adding these? It shouldn't be needed, but for some reason yesterday when the moon was a waxing gibbous it fixed an issue I did run into. Happy to keep investigating, though, there must be an answer! $ rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31) $ rustup show active-toolchain
info: syncing channel updates for 'nightly-2021-11-18-x86_64-unknown-linux-gnu'
info: latest update on 2021-11-18, rust version 1.58.0-nightly (c9c4b5d72 2021-11-17)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'llvm-tools-preview'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
25.9 MiB / 25.9 MiB (100 %) 11.7 MiB/s in 2s ETA: 0s
info: downloading component 'rustc'
54.5 MiB / 54.5 MiB (100 %) 6.2 MiB/s in 8s ETA: 0s
info: downloading component 'rustc-dev'
107.4 MiB / 107.4 MiB (100 %) 6.3 MiB/s in 17s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'llvm-tools-preview'
22.0 MiB / 22.0 MiB (100 %) 10.2 MiB/s in 2s ETA: 0s
info: installing component 'rust-docs'
19.2 MiB / 19.2 MiB (100 %) 7.9 MiB/s in 2s ETA: 0s
info: installing component 'rust-src'
info: installing component 'rust-std'
25.9 MiB / 25.9 MiB (100 %) 9.2 MiB/s in 2s ETA: 0s
info: installing component 'rustc'
54.5 MiB / 54.5 MiB (100 %) 12.1 MiB/s in 4s ETA: 0s
info: installing component 'rustc-dev'
107.4 MiB / 107.4 MiB (100 %) 15.4 MiB/s in 7s ETA: 0s
info: installing component 'rustfmt'
nightly-2021-11-18-x86_64-unknown-linux-gnu (overridden by '/home/couch/dev/public/rust/rust-clippy/rust-toolchain') Try as I might I just can't replicate it. Unfortunately that part of my session has fallen out of the scrollback buffer, so I can't even copy out the whole session for further forensics. But here at least is the history showing the sequence of commands I ran. Something possibly interesting is that I started in the 2059 pushd ~/dev/public/rust-clippy/clippy_lints/
2060 cargo check
2061 rustup use stable
2062 rustup default stable
2063 ls ../rust-toolchain
2064 vi ../rust-toolchain
2065 cargo +stable check
2066 cargo +nightly check
2067 rustup update
2068 cargo check
2069 vi ../rust-toolchain
2070 rustup update
2071 cargo check
2072 vi ../rust-toolchain
2073 cargo check
2074 vi ../rust-toolchain
2075 cargo check
2076 vi ../rust-toolchain
2077 cargo check
2078 vi ../rust-toolchain
2079 cargo check
2080 gits
2081 git log |
Did running |
I'm not sure what I've said that would have suggested I installed them by hand. The lines 2071-2079 in the history file I posted in #7989 (comment) correspond to the sequence of changes I described in #7989 (comment), adding each item in turn to the toolchain file and trying |
Oh I thought you meant after adding cargo with The only thing that I can imagine that happened here is that rustup thought that the toolchain was already installed, but it actually wasn't. So adding components would install the components. I have no idea how such a situation would happen. And I would say this is a bug in rustup. But without a reproducer, it's really hard to figure out what happened here. In that case, I'm happy to merge this. Could you rebase ontop of master please? |
8f393e2
to
0375d20
Compare
Rebased. I also took the liberty of sorting the list. Thanks! |
Thanks! @bors r+ |
📌 Commit 0375d20 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Somehow these basic components are missing from the toolchain file...
changelog: none