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

rustfmt / clippy component missing #104930

Closed
matthiaskrgr opened this issue Nov 26, 2022 · 7 comments · Fixed by #104950
Closed

rustfmt / clippy component missing #104930

matthiaskrgr opened this issue Nov 26, 2022 · 7 comments · Fixed by #104950
Labels
C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

matthiaskrgr commented Nov 26, 2022

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

@matthiaskrgr matthiaskrgr added T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. labels Nov 26, 2022
@matthiaskrgr
Copy link
Member Author

rustup component list | grep "clippy\|rustfmt"

clippy-x86_64-unknown-linux-gnu (installed)
rustfmt-x86_64-unknown-linux-gnu (installed)

@matthiaskrgr matthiaskrgr changed the title rustup / clippy component missing rustfmt / clippy component missing Nov 26, 2022
@jyn514
Copy link
Member

jyn514 commented Nov 26, 2022

I think this is a rustup bug somehow, it's looking specifically for -preview:

; rustup update nightly --force
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)
warning: Force-skipping unavailable component 'clippy-preview-x86_64-unknown-linux-gnu'
warning: Force-skipping unavailable component 'rustfmt-preview-x86_64-unknown-linux-gnu'

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
Copy link
Contributor

ehuss commented 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
Copy link
Member

jyn514 commented 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
Copy link
Member

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
Copy link
Member

jyn514 commented Nov 26, 2022

@Mark-Simulacrum what went wrong in #103648 is that rustup component add rustfmt worked before and after, but running rustup component add rustfmt before and rustup toolchain update after did not. I'll make sure to test that in any future PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@ehuss @matthiaskrgr @Mark-Simulacrum @jyn514 and others