-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support locks path deps with path deps #6438
Conversation
Pass the location of `uv.lock`, the base of our relative lockfile pass, through when locking in project mode. This fixes previous incorrect paths that were using the root of the other workspace as reference for the relative path. Fix #6371.
2867f8c
to
ccfdae1
Compare
@@ -336,6 +336,8 @@ pub(crate) async fn pip_install( | |||
dev, | |||
source_trees, | |||
project, | |||
// Not needed, there's no `uv.lock`. | |||
None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a custom enum so you don't need this comment everywhere? Something self-documenting, like WorkspaceRoot::None
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise I'd probably just remove the comments.
@@ -310,6 +310,10 @@ pub(crate) async fn pip_compile( | |||
BuildIsolation::SharedPackage(&environment, &no_build_isolation_package) | |||
}; | |||
|
|||
// Currently no effect (only used for `uv.lock`), but there's no reason not to preserve this | |||
// information. | |||
let main_workspace_root = output_file.and_then(|file| file.parent()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use None
then?
Those Windows failures are real -- we need to consistently use the canonical or non-canonical paths. |
Waiting for #6490 first |
Pass the location of
uv.lock
, the base of our relative lockfile paths, around when locking in project mode. This fixes previous incorrect paths that were using the root of the other workspace as reference for the relative path.Fixes #6371.