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

Fix resolver version or cargo #1260

Closed
ClementWalter opened this issue Jun 19, 2023 · 3 comments · Fixed by #1311
Closed

Fix resolver version or cargo #1260

ClementWalter opened this issue Jun 19, 2023 · 3 comments · Fixed by #1311
Labels
bug Something isn't working

Comments

@ClementWalter
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Pull the project on main branch
  2. run cargo build --workspace
  3. See the following warning
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest

Expected behavior

A resolver version set up.

Additional context

See also https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions

@ClementWalter ClementWalter added the bug Something isn't working label Jun 19, 2023
@MegaRedHand
Copy link
Contributor

Could you please share the output of cargo --version ?

@ClementWalter
Copy link
Author

cargo --version
cargo 1.72.0-nightly (b0fa79679 2023-06-03)

@MegaRedHand
Copy link
Contributor

Thanks for the heads-up! Should be fixed by #1311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants