MercuryTechnologies / ghciwatch

Load a GHCi session for a Haskell project and reload it when source files change
https://mercurytechnologies.github.io/ghciwatch/
MIT License
104 stars 9 forks source link

Lower bound for cargo version #311

Open yairchu opened 1 month ago

yairchu commented 1 month ago

What happened?

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

The version of ghciwatch with the bug

ghciwatch 1.0.1