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 messes up nightly upgrade #1566

Closed
xd009642 opened this issue Dec 10, 2018 · 8 comments
Closed

Rustfmt messes up nightly upgrade #1566

xd009642 opened this issue Dec 10, 2018 · 8 comments

Comments

@xd009642
Copy link

When trying to update my nightly rust I got:

rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-12-08, rust version 1.32.0-nightly (4a45578bc 2018-12-07)
error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download

So I tried to remove rustfmt hoping it would ignore the target and got this:

rustup component remove rustfmt
error: toolchain 'nightly-x86_64-unknown-linux-gnu' does not contain component 'rustfmt' for target 'x86_64-unknown-linux-gnu'

In fact now I'm in a strange state where I can't seem to remove rustfmt or upgrade my nightly rust... I've also tried removing the installed rustfmt explicitly using the name given in rustup component list

rustup component remove rustfmt-preview-x86_64-unknown-linux-gnu
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rustfmt-preview-x86_64-unknown-linux-gnu' for target 'x86_64-unknown-linux-gnu'

Any guidance would be appreciated, I'm a bit stumped with this one.

@nrc
Copy link
Member

nrc commented Dec 10, 2018

You could try running rustup update rather than rustup update nightly, though it seems like you might be in a weird state now :-( rustup component remove rustfmt-preview might help, but I doubt it.

You could uninstall and re-install rustup, or wait until the next nightly is released and then do rustup update.

@xd009642
Copy link
Author

Well rustup component remove rustfmt-preview worked but I still can't update nightly. rustup update didn't work it just did the following:

rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-12-08, rust version 1.32.0-nightly (4a45578bc 2018-12-07)
error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download
info: checking for self-updates

       stable-x86_64-unknown-linux-gnu unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
  nightly-x86_64-unknown-linux-gnu update failed - rustc 1.32.0-nightly (14997d56a 2018-12-05)

How did I end up in this weird state 😕? I'll wait till the next nightly and either comment with updates or close this issue.

@Rudi3
Copy link
Contributor

Rudi3 commented Dec 11, 2018

Because I couldn't update, I did a reinstall. With the fresh install, I still can't add components such as rls or rustfmt.

$ rustup update                       
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: checking for self-updates

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.32.0-nightly (4a45578bc 2018-12-07)
$ rustup component add rls-preview    
error: component 'rls' for target 'x86_64-unknown-linux-gnu' is unavailable for download
$ rustup component add rustfmt    
error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download

@rivy
Copy link

rivy commented Dec 12, 2018

Same problem here for the last few days...

C:\>rustup update
info: syncing channel updates for 'stable-i686-pc-windows-gnu'
info: syncing channel updates for 'stable-i686-pc-windows-msvc'
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: syncing channel updates for 'nightly-i686-pc-windows-gnu'
info: syncing channel updates for 'nightly-i686-pc-windows-msvc'
info: latest update on 2018-12-08, rust version 1.32.0-nightly (4a45578bc 2018-12-07)
error: some components unavailable for download: 'rls', 'rustfmt'
info: syncing channel updates for 'nightly-x86_64-pc-windows-gnu'
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2018-12-08, rust version 1.32.0-nightly (4a45578bc 2018-12-07)
error: some components unavailable for download: 'rls', 'rustfmt'
info: checking for self-updates

          stable-i686-pc-windows-gnu unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
         stable-i686-pc-windows-msvc unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
        stable-x86_64-pc-windows-gnu unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
       stable-x86_64-pc-windows-msvc unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
         nightly-i686-pc-windows-gnu unchanged - rustc 1.32.0-nightly (4a45578bc 2018-12-07)
    nightly-i686-pc-windows-msvc update failed - rustc 1.32.0-nightly (edaac35d6 2018-11-24)
       nightly-x86_64-pc-windows-gnu unchanged - rustc 1.32.0-nightly (4a45578bc 2018-12-07)
  nightly-x86_64-pc-windows-msvc update failed - rustc 1.32.0-nightly (edaac35d6 2018-11-24)

@rivy
Copy link

rivy commented Dec 14, 2018

Now fixed with most recent nightly (rustc 1.32.0-nightly (f4a421ee3 2018-12-13)).

Any idea what the problem was?

@mati865
Copy link
Contributor

mati865 commented Dec 14, 2018 via email

@rivy
Copy link

rivy commented Dec 14, 2018

👍
Thanks for the explanatory link.
I think this can be closed.
@xd009642, problem solved?

@xd009642
Copy link
Author

Yeah I'm happy this is resolved, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants