Skip to content

Use correct target_base for unpacking #10

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

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

konstin
Copy link
Member

@konstin konstin commented Feb 4, 2025

In #2, we accidentally changed the target_base from the target base to the parent of the file. This would cause hardlink unpacking to fail.

Example: A hardlink at hardlinked-0.1.0/pyproject.toml pointing to hardlinked-0.1.0/pyproject.toml.real would try pointing to hardlinked-0.1.0/hardlinked-0.1.0/pyproject.toml.real instead and fail the unpacking.

uv companion PR with test: astral-sh/uv#11221

In #2, we accidentally changed the `target_base` from the target base to the parent of the file. This would cause hardlink unpacking to fail.

Example: A hardlink at `hardlinked-0.1.0/pyproject.toml` pointing to `hardlinked-0.1.0/pyproject.toml.real` would try pointing to `hardlinked-0.1.0/`hardlinked-0.1.0/pyproject.toml.real` instead and fail the unpacking.

[future edit: uv companion PR with test]
@konstin konstin force-pushed the konsti/fix-hardlink-unpacking branch from 824b4d7 to d6be1ad Compare February 4, 2025 17:07
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! When you merge, please create a tag with the first seven characters of the commit SHA.

@konstin
Copy link
Member Author

konstin commented Feb 4, 2025

I'll follow-up with a test case in this repo, too

@konstin konstin merged commit efeaea9 into main Feb 4, 2025
@konstin konstin deleted the konsti/fix-hardlink-unpacking branch February 4, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants