You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, pre-releases aren't considered breaking changes between each other, so the lockfile and the manifest are free to disagree. There is discussion on this in #2222.
As for why beta9 was picked over beta10 is because semver precedence only does numeric comparisons for . delimited numbers. That would need to be beta.9 and beta.10.
Issue
Cargo.lock
does not match the pre-release version specified inCargo.toml
after runningcargo add
.Reproduction Steps
cargo new test_project
cargo add [email protected]
Cargo.toml
correctly showsmemflow = "0.2.0-beta10"
Cargo.lock
reflectsmemflow
as0.2.0-beta9
Expected
Both
Cargo.toml
andCargo.lock
should listmemflow
as0.2.0-beta10
.Actual
Cargo.lock
listsmemflow
as0.2.0-beta9
.Cargo Version
cargo 1.75.0-nightly (7046d99 2023-11-08)
Operating System
Ubuntu 22.04
The discrepancy between lock and manifest files for a pre-release version is causing dependency resolution issues.
The text was updated successfully, but these errors were encountered: