Skip to content

Support locks path deps with path deps#6438

Closed
konstin wants to merge 1 commit intomainfrom
konsti/support-relative-path-hopping
Closed

Support locks path deps with path deps#6438
konstin wants to merge 1 commit intomainfrom
konsti/support-relative-path-hopping

Conversation

@konstin
Copy link
Copy Markdown
Member

@konstin konstin commented Aug 22, 2024

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.

@konstin konstin added the bug Something isn't working label Aug 22, 2024
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.
@konstin konstin force-pushed the konsti/support-relative-path-hopping branch from 2867f8c to ccfdae1 Compare August 22, 2024 14:23
source_trees,
project,
// Not needed, there's no `uv.lock`.
None,
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member

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.


// 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());
Copy link
Copy Markdown
Member

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?

@charliermarsh
Copy link
Copy Markdown
Member

Those Windows failures are real -- we need to consistently use the canonical or non-canonical paths.

@konstin
Copy link
Copy Markdown
Member Author

konstin commented Aug 23, 2024

Waiting for #6490 first

@konstin konstin marked this pull request as draft August 23, 2024 08:12
konstin added a commit that referenced this pull request Aug 23, 2024
konstin added a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 23, 2024
charliermarsh pushed a commit that referenced this pull request Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv lock collapses relative paths to editable builds in monorepo, breaks uv sync

2 participants