Skip to content

Error on Windows calling cargo: "no such command: +bisector-nightly-2024-03-01-x86_64-pc-windows-msvc" #333

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
MingweiSamuel opened this issue Apr 11, 2024 · 3 comments

Comments

@MingweiSamuel
Copy link

MingweiSamuel commented Apr 11, 2024

Not sure exactly what is going on, but bisect-rustc is instantly finding that every single version is regressed, even though some aren't. Using --prompt showed some more info, it seems it's somehow not calling cargo +toolchain correctly.

Console output:

$ cargo bisect-rustc --start=2024-03-01 --end=2024-03-19 --prompt
checking the start range to find a passing nightly
installing nightly-2024-03-01
rust-std-nightly-x86_64-pc-windows-msvc: 20.03 MB / 20.03 MB [============================================================================================================================================] 100.00 % 10.58 MB/s testing...
error: no such command: `+bisector-nightly-2024-03-01-x86_64-pc-windows-msvc`

        Cargo does not handle `+toolchain` directives.
        Did you mean to invoke `cargo` through `rustup` instead?


nightly-2024-03-01 finished with exit code Some(101).
please select an action to take:
> mark regressed
  mark baseline
  retry

Calling cargo directly seems to work as expected:

$ cargo +nightly-2024-03-01-x86_64-pc-windows-msvc test
   Compiling indexmap v2.1.0
   Compiling winnow v0.5.30
   Compiling syn v2.0.42
   ...

cargo -Vv

$ cargo -Vv
cargo 1.79.0-nightly (28e7b2bc0 2024-04-05)
release: 1.79.0-nightly
commit-hash: 28e7b2bc0a812f90126be30f48a00a4ada990eaa
commit-date: 2024-04-05
host: x86_64-pc-windows-msvc
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:Schannel)
os: Windows 10.0.19045 (Windows 10 Home) [64-bit]
$ cargo bisect-rustc --version
cargo-bisect-rustc-bisect-rustc 0.6.8
@MingweiSamuel MingweiSamuel changed the title Cargo error "no such command: +bisector-nightly-2024-03-01-x86_64-pc-windows-msvc" Cargo error on Windows: "no such command: +bisector-nightly-2024-03-01-x86_64-pc-windows-msvc" Apr 11, 2024
@MingweiSamuel
Copy link
Author

Does not happen on my apple-darwin mac

@MingweiSamuel MingweiSamuel changed the title Cargo error on Windows: "no such command: +bisector-nightly-2024-03-01-x86_64-pc-windows-msvc" Error on Windows calling cargo: "no such command: +bisector-nightly-2024-03-01-x86_64-pc-windows-msvc" Apr 11, 2024
@ehuss
Copy link
Collaborator

ehuss commented Apr 11, 2024

Thanks for the report! I believe you should be able to fix this by either:

  • Setting the environment variable RUSTUP_WINDOWS_PATH_ADD_BIN=0
  • Using a - in the filename, like cargo-bisect-rustc

This should be fixed after the next release of rustup.

Closing as I believe this is a duplicate of #244. If that doesn't solve your issue, feel free to reopen.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
@MingweiSamuel
Copy link
Author

Yup worked, 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

2 participants