Skip to content

Commit

Permalink
Retain empty extras on workspace members (#7762)
Browse files Browse the repository at this point in the history
## Summary

I'm not sure why we drop these but it seems incorrect.
  • Loading branch information
charliermarsh authored Sep 28, 2024
1 parent 9f981c9 commit 9363ecf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/uv-workspace/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9363ecf

Please sign in to comment.