Skip to content

Comments

Add support for unpacking tars with hardlinks#21092

Open
NilsIrl wants to merge 2 commits intoziglang:masterfrom
NilsIrl:nils-hard-link
Open

Add support for unpacking tars with hardlinks#21092
NilsIrl wants to merge 2 commits intoziglang:masterfrom
NilsIrl:nils-hard-link

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.

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
Member

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