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

Version 0.25.0 not found #339

Closed
maxclaey opened this issue May 30, 2022 · 7 comments · Fixed by #367
Closed

Version 0.25.0 not found #339

maxclaey opened this issue May 30, 2022 · 7 comments · Fixed by #367

Comments

@maxclaey
Copy link

maxclaey commented May 30, 2022

Description

When selecting version "0.25.0" for sea-query, cargo reports it failed to select a version, with the latest candidate version being 0.24.6, even after updating the crates.io index. However, the latest version listed on crates.io is 0.25.0. Reproduced on an ubuntu and macos setup. Removing ~/.cargo/registry doesn't help.

Steps to Reproduce

  1. Update sea-query dependency version to "0.25.0"
  2. Run e.g. cargo check

Expected Behavior

The correct version is found

Actual Behavior

Cannot select a version:

    Updating crates.io index
error: failed to select a version for the requirement `sea-query = "^0.25.0"`
candidate versions found which didn't match: 0.24.6, 0.24.5, 0.24.4, ...
location searched: crates.io index

Reproduces How Often

Reproduced on a macos and ubuntu setup.

Versions

0.25.0

Additional Information

cargo 1.58.0 (f01b232bc 2022-01-19)
rustc 1.58.1 (db9d1b20b 2022-01-20)
@billy1624
Copy link
Member

Hey @maxclaey, thanks for the report! Could you please run and show me the output of cargo tree | grep sea-?

@billy1624
Copy link
Member

billy1624 commented May 30, 2022

Btw... I wonder does cargo update solve the issue?

@maxclaey
Copy link
Author

@billy1624 Thanks for your response! Running cargo update gives the same response:

    Updating crates.io index
error: failed to select a version for the requirement `sea-query = "^0.25.0"`
candidate versions found which didn't match: 0.24.6, 0.24.5, 0.24.4, ...
location searched: crates.io index

The same holds for cargo tree | grep sea-. In the meanwhile I figured out that it works when using rustc 1.60.0 or above (rustc 1.59.0 still has the same issue). Is there a minimum rustc version that is required for the latest version of sea-query?

@billy1624
Copy link
Member

Bingo! We employed new feature that was offered in Rust 1.16.0

I think we should specify rust-version in sea-query's Cargo.toml. Then, user will be prompted with proper error messages. @tyt2y3

@maxclaey
Copy link
Author

Agreed, it would be nice to at least sea this requirement :)! Thanks for clarifying!

@billy1624
Copy link
Member

I'm going to transfer this issue to sea-query

@billy1624
Copy link
Member

Oppps... this issue is on sea-query. Ignore me plz loll

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

Successfully merging a pull request may close this issue.

2 participants