Skip to content

UnexpectedVersionFormat installing nightly-2020-10-23 #126

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
Michael-F-Bryan opened this issue Jan 20, 2021 · 2 comments
Closed

UnexpectedVersionFormat installing nightly-2020-10-23 #126

Michael-F-Bryan opened this issue Jan 20, 2021 · 2 comments

Comments

@Michael-F-Bryan
Copy link

While troubleshooting rust-lang/rust#81221 I ran into a panic in cargo-bisect-rust where it encountered a UnexpectedVersionFormat error while installing nightly-2020-10-23.

$ cargo bisect-rustc --preserve --start 2020-07-27 --verbose -- build
installing nightly-2020-07-27
testing...
RESULT: nightly-2020-07-27, ===> No

installing nightly-2021-01-19
testing...
RESULT: nightly-2021-01-19, ===> Yes

installing nightly-2020-10-23
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnexpectedVersionFormat', /home/michael/.cargo/registry/src/gb.xjqchip.workers.dev-1ecc6299db9ec823/cargo-bisect-rustc-0.6.0/src/toolchains.rs:91:58
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The annoying part is that I tried to run it again with RUST_BACKTRACE=1, and installing nightly-2020-10-23 completed without an issue.

@cormacrelf
Copy link

For me this was because of something attempting to read my rust-toolchain.toml, which had an invalid channel name in it.

@ehuss
Copy link
Collaborator

ehuss commented Feb 13, 2024

Closing as I believe this is essentially resolved by #152. I'm uncertain what the exact circumstances that lead to the above error, so it is difficult to reproduce. However, as of that PR, it will ignore nightly if it can't determine the version from it (perhaps it somehow was a dev version?).

@ehuss ehuss closed this as completed Feb 13, 2024
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

3 participants