Skip to content
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

Only use relative paths in lockfile #6490

Merged
merged 7 commits into from
Aug 24, 2024
Merged

Conversation

charliermarsh
Copy link
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 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
Copy link
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
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
Member Author

I suspect all the Windows tests will still fail?

@charliermarsh
Copy link
Member Author

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

Base automatically changed from charlie/canogs to main August 24, 2024 02:02
@charliermarsh charliermarsh merged commit f783524 into main Aug 24, 2024
57 checks passed
@charliermarsh charliermarsh deleted the charlie/relative-path branch August 24, 2024 02:19
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