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

Cargo install fails: component unavailable for x86_64-apple-darwin #3244

Closed
xrl opened this issue Dec 10, 2018 · 2 comments
Closed

Cargo install fails: component unavailable for x86_64-apple-darwin #3244

xrl opened this issue Dec 10, 2018 · 2 comments

Comments

@xrl
Copy link

xrl commented Dec 10, 2018

I'm coming back to an old laptop, haven't used it in ~6 months, and I'm trying to get my environment updated.

I had rustfmt in the cargo bin folder and I cleared it out.

Now I have the latest rustup and rustc nightly and the rustfmt install from the README fails, here's a log:

LP-XLANGE-OSX:~ xlange$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates

   stable-x86_64-apple-darwin unchanged - rustc 1.31.0 (abe02cefd 2018-12-04)
  nightly-x86_64-apple-darwin unchanged - rustc 1.32.0-nightly (4a45578bc 2018-12-07)

LP-XLANGE-OSX:~ xlange$ rustup default nightly
info: using existing install for 'nightly-x86_64-apple-darwin'
info: default toolchain set to 'nightly-x86_64-apple-darwin'

  nightly-x86_64-apple-darwin unchanged - rustc 1.32.0-nightly (4a45578bc 2018-12-07)

LP-XLANGE-OSX:~ xlange$ rustup --version
rustup 1.16.0 (beab5ac2b 2018-12-06)
LP-XLANGE-OSX:~ xlange$ rustup component add rustfmt --toolchain nightly
error: component 'rustfmt' for target 'x86_64-apple-darwin' is unavailable for download

I'm on OS X 10.13.6, btw.

LP-XLANGE-OSX:~ xlange$ uname -a
Darwin LP-XLANGE-OSX 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

Also, the rustfmt package is not installed by rustup:

LP-XLANGE-OSX:~ xlange$ rustup component remove rustfmt
error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rustfmt' for target 'x86_64-apple-darwin'
@scampi
Copy link
Contributor

scampi commented Dec 10, 2018

This could be due to rust-lang/rust#56667

@palfrey
Copy link

palfrey commented Dec 14, 2018

https://mexus.github.io/rustup-components-history/ says 2018-12-14 has it again

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

4 participants