Skip to content

unable to add component rustfmt for toolchain nightly via rustup #933

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

Closed
eeeebbbbrrrr opened this issue Aug 3, 2020 · 5 comments
Closed

Comments

@eeeebbbbrrrr
Copy link

Crate name: pgx
Build failure link: https://docs.rs/crate/pgx/0.0.9/builds/277703

Additional details:

I understand why my crate (there's a few actually) are failing to build on docs.rs -- I'm not looking for help with that.

I thought I'd clone this repo and use the really fancy docker-compose stuff to work through a solution locally w/o trying to blackbox docs.rs by publishing new versions every few minutes.

Unfortunately, this command (on MacOS 10.15.1):

$ docker-compose run -v "$(realpath /Users/xxx/_work/pgx/pgx)":/build web build crate --local /build

ultimately fails with:

2020/08/03 18:46:15 [INFO] rustwide::cmd: running `Command { std: "/opt/docsrs/rustwide/cargo-home/bin/rustup" "component" "add" "--toolchain" "nightly" "rustfmt", kill_on_drop: false }`
2020/08/03 18:46:15 [INFO] rustwide::cmd: [stderr] error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly
2020/08/03 18:46:15 [INFO] rustwide::cmd: [stderr] Sometimes not all components are available in any given nightly.
Error: Building documentation failed

Caused by:
    unable to add component rustfmt for toolchain nightly via rustup

This is as of 482d566.

I'm stumped. I've successfully used this process in the past to debug similar build issues for another crate and it worked flawlessly.

Any suggestions?

I've attached the entire output from docker-compose for more investigation.

build.log

@jyn514
Copy link
Member

jyn514 commented Aug 3, 2020

This was fixed in #931. Try pulling master and rebasing.

@jyn514 jyn514 closed this as completed Aug 3, 2020
@eeeebbbbrrrr
Copy link
Author

Thanks. I've just re-cloned the repo and am starting the entire docker building process from scratch. Will report back...

@jyn514
Copy link
Member

jyn514 commented Aug 3, 2020

Ouch. For future reference, git pull should work as well, although it wouldn't help much in this case since we changed the lockfile in #929.

You could also try building without docker which caches a lot more, that should work now that we no longer depend on the host being linux. I really need to update the docs ... https://forge.rust-lang.org/docs-rs/no-docker-compose.html#building-the-site

@eeeebbbbrrrr
Copy link
Author

I was current with master, but maybe my original docker-compose build was out of date.

Anyways, I'm making progress now. I'm able to see the same errors as on docs.rs.

Thanks for all your work!

@jyn514
Copy link
Member

jyn514 commented Aug 3, 2020

Thank you for your patience!

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

2 participants