-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
xtask can't install toolchain #3243
Comments
cargo test
can't install toolchain
What is the exit code of |
0 when running it separately, but |
Wild guess: what does
diff `which cargo` `which rustc`
says?
Perhaps rustup tries to replace cargo shim and fails?
…On Wednesday, 19 February 2020, Laurențiu Nicola ***@***.***> wrote:
I've had this for a long time, but I have no idea what's happening:
$ cargo test
[snip]
Running target/debug/deps/tidy_tests-011c6372e455c154
running 6 tests
test cli::generated_tests_are_fresh ... ok
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
test docs::no_docs_comments ... ok
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
test cli::no_todo ... ok
info: latest update on 2020-01-30, rust version 1.41.0 (5e1a79984 2020-01-27)
info: downloading component 'cargo'
info: latest update on 2020-01-30, rust version 1.41.0 (5e1a79984 2020-01-27)
info: downloading component 'cargo'
info: latest update on 2020-01-30, rust version 1.41.0 (5e1a79984 2020-01-27)
info: downloading component 'cargo'
info: downloading component 'rust-std'
error: component download failed for cargo-x86_64-unknown-linux-gnu
error: caused by: could not rename file
test cli::generated_assists_are_fresh ... FAILED
error: component download failed for cargo-x86_64-unknown-linux-gnu
error: caused by: could not rename file
test cli::generated_grammar_is_fresh ... FAILED
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'rustfmt'
test cli::check_code_formatting ... ok
failures:
---- cli::generated_assists_are_fresh stdout ----
> rustup toolchain install stable
thread 'cli::generated_assists_are_fresh' panicked at 'process `rustup toolchain install stable` failed. Please update assists by running `cargo xtask codegen`', xtask/tests/tidy-tests/cli.rs:24:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- cli::generated_grammar_is_fresh stdout ----
> rustup toolchain install stable
thread 'cli::generated_grammar_is_fresh' panicked at 'process `rustup toolchain install stable` failed. Please update it by running `cargo xtask codegen`', xtask/tests/tidy-tests/cli.rs:10:9
failures:
cli::generated_assists_are_fresh
cli::generated_grammar_is_fresh
test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '-p xtask --test tidy-tests'
$ rustup toolchain install stable info: syncing channel updates for
'stable-x86_64-unknown-linux-gnu'
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.41.0 (5e1a79984
2020-01-27)
$ rustup toolchain remove stable info: uninstalling toolchain
'stable-x86_64-unknown-linux-gnu'
info: toolchain 'stable-x86_64-unknown-linux-gnu' uninstalled
$ rustup toolchain install stable info: syncing channel updates for
'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-01-30, rust version 1.41.0 (5e1a79984
2020-01-27)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
57.9 MiB / 57.9 MiB (100 %) 19.8 MiB/s in 3s ETA: 0s
info: installing component 'cargo'
info: installing component 'rust-std'
17.5 MiB / 17.5 MiB (100 %) 17.3 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
57.9 MiB / 57.9 MiB (100 %) 13.3 MiB/s in 4s ETA: 0s
stable-x86_64-unknown-linux-gnu installed - rustc 1.41.0 (5e1a79984
2020-01-27)
$ cargo test -p xtask --test tidy-tests Finished test [unoptimized]
target(s) in 0.04s
Running target/debug/deps/tidy_tests-011c6372e455c154
running 6 tests
test docs::no_docs_comments ... ok
test cli::generated_tests_are_fresh ... ok
test cli::no_todo ... ok
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: downloading component 'rustfmt'
info: downloading component 'rustfmt'
info: downloading component 'rustfmt'
info: installing component 'rustfmt'
error: component download failed for rustfmt-x86_64-unknown-linux-gnu
error: caused by: could not rename file
test cli::generated_assists_are_fresh ... FAILED
error: component download failed for rustfmt-x86_64-unknown-linux-gnu
error: caused by: could not rename file
test cli::check_code_formatting ... FAILED
test cli::generated_grammar_is_fresh ... ok
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3243>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANB3M4SZ425UP3UEZXRIZ3RDWQE5ANCNFSM4KYCBZSQ>
.
|
And I can reproduce it with:
|
Latest release also has this issue (built on stable Rust 1.42): wget https://github.com/rust-analyzer/rust-analyzer/archive/2020-03-23.tar.gz
tar xf 2020-03-23.tar.gz
cd rust-analyzer-2020-03-23
cargo test -p xtask --test=tidy-tests Sample output:
|
Fixed in #4219. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've had this for a long time, but I have no idea what's happening:
The text was updated successfully, but these errors were encountered: