-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix relative and absolute path handling in lockfiles (#4266)
Previously, `b` in the test case would have been incorrectly locked to the path of `a`. I've moved `relative_to` into uv-fs since it's now used in two different places. Previously failing lockfile when `a/pyproject.toml` and `a/b/pyproject.toml` exist (not in a workspace) and `a` was depending on `b`: ```toml version = 1 requires-python = ">=3.11, <3.13" [[distribution]] name = "b" version = "0.1.0" source = "directory+/home/konsti/projects/uv/a" sdist = { path = "/home/konsti/projects/uv/a" } [[distribution]] name = "black" version = "0.1.0" source = "editable+." sdist = { path = "." } [[distribution.dependencies]] name = "b" version = "0.1.0" source = "directory+/home/konsti/projects/uv/a" ```
- Loading branch information
Showing
4 changed files
with
231 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.