-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo publish
of a [lib]
fails when dependencies exist newer than my toolchain version
#13306
Comments
We talked about this in today's team meeting. Though we changed out guidance on committing We have rust-lang/rfcs#3537 but that excludes "ephemeral" workspaces which is targeted at Options
I think someone expressed that ehuss pointed out that the verify step using the latest dependencies, rather than your lockfile, was very intentional to ensure you verified what your dependents are going to run. As the main point of discussion was whether to include this in the RFC or if we could do a quick fix, we decided to shift the conversation to this issue. |
With an MSRV-aware resolver, we will move from dependents using "latest" (all dependent on what was already in their lockfile) to multiple points within their version timeline. For myself, the earlier points in that timeline are what are more likely to break you then the later points. For myself, I feel like most |
This isn't the current behavior, if you have a crate where the lockfile is included in the published package, that lockfile will be used during the verify step. |
With #14815, I think this can be closed. |
Problem
Captured from https://internals.rust-lang.org/t/pre-rfc-msrv-aware-resolver/19871/65?u=epage
Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: