mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-18 03:13:48 +00:00
Avoid enforcing distribution ID uniqueness for extras (#4104)
## Summary The condition enforced here isn't quite right. The same dependency can appear multiple times, as long as the extra is different. Closes https://github.com/astral-sh/uv/issues/4101.
This commit is contained in:
parent
8798e91dd5
commit
30e73a60de
2 changed files with 296 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ impl TryFrom<LockWire> for Lock {
|
|||
dist.dependencies.sort();
|
||||
for windows in dist.dependencies.windows(2) {
|
||||
let (dep1, dep2) = (&windows[0], &windows[1]);
|
||||
if dep1.id == dep2.id {
|
||||
if dep1 == dep2 {
|
||||
return Err(LockError::duplicate_dependency(
|
||||
dist.id.clone(),
|
||||
dep1.id.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue