Skip to content

rustfmt / clippy component missing #104930

Closed
@matthiaskrgr

Description

@matthiaskrgr
Member

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

added
T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.
C-bugCategory: This is a bug.
regression-untriagedUntriaged performance or correctness regression.
on Nov 26, 2022
matthiaskrgr

matthiaskrgr commented on Nov 26, 2022

@matthiaskrgr
MemberAuthor

rustup component list | grep "clippy\|rustfmt"

clippy-x86_64-unknown-linux-gnu (installed)
rustfmt-x86_64-unknown-linux-gnu (installed)
changed the title [-]rustup / clippy component missing[/-] [+]rustfmt / clippy component missing[/+] on Nov 26, 2022
jyn514

jyn514 commented on Nov 26, 2022

@jyn514
Member

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

ehuss commented on Nov 26, 2022

@ehuss
Contributor

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

jyn514 commented on Nov 26, 2022

@jyn514
Member

@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

Mark-Simulacrum commented on Nov 26, 2022

@Mark-Simulacrum
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

jyn514 commented on Nov 26, 2022

@jyn514
Member

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ehuss@matthiaskrgr@Mark-Simulacrum@jyn514

      Issue actions

        rustfmt / clippy component missing · Issue #104930 · rust-lang/rust