Skip to content

Only use relative paths in lockfile#6490

Merged
charliermarsh merged 7 commits intomainfrom
charlie/relative-path
Aug 24, 2024
Merged

Only use relative paths in lockfile#6490
charliermarsh merged 7 commits intomainfrom
charlie/relative-path

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Aug 23, 2024

For users who were using absolute paths in the pyproject.toml previously, this is a behavior change: We now convert all absolute paths in path entries to relative paths. Since i assume that no-one relies on absolute path in their lockfiles - they are intended to be portable - I'm tagging this as a bugfix.

Closes #6438
Fixes #6371

@charliermarsh charliermarsh added internal A refactor or improvement that is not user-facing lock Related to universal resolution and locking labels Aug 23, 2024
@charliermarsh charliermarsh force-pushed the charlie/relative-path branch 2 times, most recently from 13d078f to fa54e82 Compare August 23, 2024 04:18
@konstin konstin added bug Something isn't working and removed lock Related to universal resolution and locking labels Aug 23, 2024
@konstin konstin force-pushed the charlie/relative-path branch from a37bc3e to d03e036 Compare August 23, 2024 20:50
@konstin konstin marked this pull request as ready for review August 23, 2024 20:52
@konstin konstin enabled auto-merge (squash) August 23, 2024 20:53
@konstin konstin changed the title Convert to relative paths at lock-time Only use relative paths in lockfile Aug 23, 2024
@charliermarsh charliermarsh disabled auto-merge August 23, 2024 21:33
@charliermarsh
Copy link
Copy Markdown
Member Author

I think we have a problem whereby distribution / requirement install_path is canonicalized (so symlinks are resolved), but the workspace install path is not...

@charliermarsh
Copy link
Copy Markdown
Member Author

I think we're too inconsistent about this unfortunately. Hmm...

@charliermarsh charliermarsh force-pushed the charlie/relative-path branch 2 times, most recently from 07824d7 to 828a531 Compare August 23, 2024 21:52
@charliermarsh
Copy link
Copy Markdown
Member Author

I suspect all the Windows tests will still fail?

@charliermarsh charliermarsh force-pushed the charlie/relative-path branch from 828a531 to bdb8f97 Compare August 23, 2024 22:53
@charliermarsh
Copy link
Copy Markdown
Member Author

Trying to make this work but will later need to be broken up into multiple PRs.

@charliermarsh charliermarsh force-pushed the charlie/relative-path branch from bdb8f97 to aa71ee9 Compare August 23, 2024 23:20
@charliermarsh charliermarsh changed the base branch from main to charlie/canogs August 23, 2024 23:20
@charliermarsh charliermarsh force-pushed the charlie/relative-path branch 2 times, most recently from 9877bf1 to 8d9f313 Compare August 23, 2024 23:24
@charliermarsh charliermarsh force-pushed the charlie/relative-path branch 2 times, most recently from 67442c5 to bddebfb Compare August 23, 2024 23:39
@charliermarsh charliermarsh force-pushed the charlie/relative-path branch from bddebfb to 844644b Compare August 23, 2024 23:51
@charliermarsh charliermarsh force-pushed the charlie/relative-path branch from 844644b to acadf1f Compare August 23, 2024 23:57
Base automatically changed from charlie/canogs to main August 24, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working internal A refactor or improvement that is not user-facing

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