Skip to content

Comments

Use correct target_base for unpacking#10

Merged
konstin merged 1 commit intomainfrom
konsti/fix-hardlink-unpacking
Feb 4, 2025
Merged

Use correct target_base for unpacking#10
konstin merged 1 commit intomainfrom
konsti/fix-hardlink-unpacking

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