-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
msrv-policy regression in 1.79.0-nightly (nightly-2024-04-21) #13815
Comments
Thanks for the report. This is expected behavior after the change in #13769, which prepares for the upcoming change in Edition 2024. You should be able to use MSRV-aware resolver in the latest nightly with the following configuration (note that the config name and value are just placeholders for now): $ cargo +nightly generate-lockfile -Zmsrv-policy --config "resolver.something-like-precedence='something-like-rust-version'"
Updating crates.io index
Locking 22 packages to latest Rust 1.70.0 compatible versions
Adding clap v4.4.18 (latest: v4.5.4)
Adding clap_builder v4.4.18 (latest: v4.5.2)
Adding clap_lex v0.6.0 (latest: v0.7.0)
Adding strsim v0.10.0 (latest: v0.11.1) See the doc for more details. |
To be clear, this isn't even just about respecting rust-version in the Cargo.toml. If I set my rustup toolchain to 1.72 and use this Cargo.toml:
I get the following behavior:
Basic development workflows are completely broken for people developing with non-latest compilers if the wrong component makes it into their dependency tree. Yes, the msrv-aware resolver corrects this, but this requires mixed stable/nightly toolchains for development, and careful development workflows with complicated command arguments to ensure correct results. |
Apologies - the failure I'm reporting looks similar, but is not new - this has apparently always been broken. |
@compenguy, Cargo cannot travel back and add msrv-aware resolver support for 1.72.1. You need to set |
Going to close this. The behavior of |
Problem
Cargo no longer respects "package.rust-version" when generating a lockfile with
-Zmsrv-policy
.1.78.0-nightly works correctly. The issue appears with nightly-2024-04-21 (80d5b60 2024-04-19).
Steps
Install 1.78.0-nightly, 1.79.0-nightly, 1.70.0:
Create a new package with manifest:
Succeeds with 1.78.0-nightly:
Fails with 1.79.0-nightly:
Error:
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: