Cargo fails to resolve when adding a git dependency incompatible with a locked crate version but compatible with the Cargo.toml
requirement
#14916
Labels
A-dependency-resolution
Area: dependency resolution and the resolver
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
Cargo fails to resolve when adding a git dependency incompatible with a locked crate version but compatible with the
Cargo.toml
requirement.Steps
libc 0.2.0
in the lockfile:libc
, while keeping the same version in the lockfile:cc
with theparallel
feature.It depends on
libc >= 0.2.87
, so thelibc
version in the lockfile should be upgraded, but it errors instead.Output:
Possible Solution(s)
No response
Notes
cargo add cc@=1.2.3
) works as expected.Version
The text was updated successfully, but these errors were encountered: