I tried running cargo install ghciwatch per the installation instructions and got:
error: failed to compile `ghciwatch v1.0.1`, intermediate artifacts can be found at `/var/folders/x4/l1vp0nnd44j1f6v7qyntlcvr0000gn/T/cargo-installhXlvOZ`
Caused by:
failed to select a version for the requirement `aho-corasick = "^1.0.2"`
candidate versions found which didn't match: 0.7.20, 0.7.19, 0.7.18, ...
Then I tried cargo build with the latest HEAD (56db4fba3) and got a similar error:
error: failed to select a version for the requirement `regex = "^1.9.4"`
candidate versions found which didn't match: 1.8.4, 1.8.3, 1.8.2, ...
That was with cargo 1.57.0 (b2e52d7ca 2021-10-21)
After rustup update with cargo 1.80.0 (376290515 2024-07-16) everything worked fine.
I think that a bound on the cargo version would help guide other people who face this issue to solve their problem easily.
What did you expect to happen?
I expected a helpful error message that would help point me in the right direction.
Steps to reproduce the issue
cargo build with an older version of cargo such as 1.57.0
What happened?
I tried running
cargo install ghciwatch
per the installation instructions and got:Then I tried
cargo build
with the latest HEAD (56db4fba3
) and got a similar error:That was with
cargo 1.57.0 (b2e52d7ca 2021-10-21)
After
rustup update
withcargo 1.80.0 (376290515 2024-07-16)
everything worked fine.I think that a bound on the cargo version would help guide other people who face this issue to solve their problem easily.
What did you expect to happen?
I expected a helpful error message that would help point me in the right direction.
Steps to reproduce the issue
cargo build
with an older version of cargo such as 1.57.0The version of ghciwatch with the bug
ghciwatch 1.0.1