Closed
Description
rustup update
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2022-11-26, rust version 1.67.0-nightly (8681d4cff 2022-11-25)
info: skipping nightly which is missing installed components 'clippy', 'rustfmt'
It should not be possible that clippy component is missing since we are gating on it in CI..?
cc @jyn514 #103648
Activity
matthiaskrgr commentedon Nov 26, 2022
rustup component list | grep "clippy\|rustfmt"
[-]rustup / clippy component missing[/-][+]rustfmt / clippy component missing[/+]jyn514 commentedon Nov 26, 2022
I think this is a rustup bug somehow, it's looking specifically for
-preview
:I can back this out to give rustup time to fix it in a new release, this wasn't an urgent fix. I want to spend another few minutes investigating first though.
ehuss commentedon Nov 26, 2022
I don't think rustup's rename system is designed to allow changing the name of a component. rust-lang/rustup#1549 contains more information about how and why this was done.
jyn514 commentedon Nov 26, 2022
@kinnison says I need at a minimum to keep the
rename
key for clippy-preview. I will try to test that out today but I don't have permissions for a dist-static build and it might take me a bit so I'll put up a revert in the meantime.Mark-Simulacrum commentedon Nov 26, 2022
I'm happy to run dev-static builds as needed, but I agree that a revert is appropriate for the time being. Please feel free to poke on Zulip if you need a quick review, etc.
I'm a little surprised our testing in #103648 didn't catch this -- let's make sure we understand how to test it in the future.
jyn514 commentedon Nov 26, 2022
@Mark-Simulacrum what went wrong in #103648 is that
rustup component add rustfmt
worked before and after, but runningrustup component add rustfmt
before andrustup toolchain update
after did not. I'll make sure to test that in any future PR.is_preview
for clippy and rustfmt" #104950