Skip to content

Add support for unpacking tars with hardlinks #21092

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NilsIrl
Copy link

@NilsIrl NilsIrl commented Aug 16, 2024

Not sure how cross platform support for non-posix platforms should be implemented. This depends on std.posix.link

Use case: https://github.com/NilsIrl/dockerc/actions/runs/10414275001/job/28842950131

Comment on lines +728 to +730
if (native_os == .windows) {
return error.UnableToCreateHardLink;
}
Copy link
Member

Choose a reason for hiding this comment

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

https://learn.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions

Not sure how compatible Windows's notion of a hard link is with the POSIX notion, though. cc @squeek502

Copy link
Author

Choose a reason for hiding this comment

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

Out of precaution and without a concrete example, I would not assume they work in the same way

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say open a follow-up issue for hard links on Windows. I'm not familiar enough with hard links to know how Windows/POSIX hard links differ.

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.

3 participants