Skip to content
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

Lower bound for cargo version #311

Open
yairchu opened this issue Jul 29, 2024 · 0 comments
Open

Lower bound for cargo version #311

yairchu opened this issue Jul 29, 2024 · 0 comments
Labels
linear Created by Linear-GitHub Sync

Comments

@yairchu
Copy link

yairchu commented Jul 29, 2024

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

@github-actions github-actions bot added the linear Created by Linear-GitHub Sync label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant