mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 02:22:19 +00:00
Support dev dependencies in virtual workspace roots (#5709)
## Summary Closes https://github.com/astral-sh/uv/issues/5650.
This commit is contained in:
parent
499c368f1e
commit
69b8b16c75
10 changed files with 222 additions and 62 deletions
|
@ -420,6 +420,18 @@ impl Lock {
|
|||
}
|
||||
}
|
||||
|
||||
// Add any dependency groups that are exclusive to the workspace root (e.g., dev
|
||||
// dependencies in virtual workspaces).
|
||||
for group in dev {
|
||||
for dependency in project.group(group) {
|
||||
let root = self
|
||||
.find_by_name(dependency)
|
||||
.expect("found too many distributions matching root")
|
||||
.expect("could not find root");
|
||||
queue.push_back((root, None));
|
||||
}
|
||||
}
|
||||
|
||||
let mut map = BTreeMap::default();
|
||||
let mut hashes = BTreeMap::default();
|
||||
while let Some((dist, extra)) = queue.pop_front() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue