mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Retain empty extras on workspace members (#7762)
## Summary I'm not sure why we drop these but it seems incorrect.
This commit is contained in:
parent
9f981c934a
commit
9363ecfd31
1 changed files with 1 additions and 11 deletions
|
@ -273,17 +273,7 @@ impl Workspace {
|
|||
.as_ref()
|
||||
.map(|optional_dependencies| {
|
||||
// It's a `BTreeMap` so the keys are sorted.
|
||||
optional_dependencies
|
||||
.iter()
|
||||
.filter_map(|(name, dependencies)| {
|
||||
if dependencies.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(name)
|
||||
}
|
||||
})
|
||||
.cloned()
|
||||
.collect::<Vec<_>>()
|
||||
optional_dependencies.keys().cloned().collect::<Vec<_>>()
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue