From 0e8bf62902d72bc1d6c835f9ca6db53955fff368 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Tue, 1 Oct 2024 20:53:31 +0200 Subject: [PATCH] Clarify locking and resolving without package name (#7578) This adds a guiding comment around an hardcoded no-value in the lock-and-resolve flow. Ref: https://github.com/astral-sh/uv/pull/7488#issuecomment-2358385418 --------- Co-authored-by: Zanie Blue --- crates/uv/src/commands/project/lock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/uv/src/commands/project/lock.rs b/crates/uv/src/commands/project/lock.rs index 1b69db180..2ff0557dc 100644 --- a/crates/uv/src/commands/project/lock.rs +++ b/crates/uv/src/commands/project/lock.rs @@ -549,6 +549,7 @@ async fn do_lock( .collect(), dev, source_trees, + // The root is always null in workspaces, it "depends on" the projects None, Some(workspace.packages().keys().cloned().collect()), &extras,