[PR #422] Tar symlink support #1023

Open
opened 2026-01-29 22:18:40 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/422

State: closed
Merged: No


I've been trying to use SharpCompress in my project, and encountered tar archives containing symlinks to be a problem for extraction, so I've tried to implement support for symlinks.

I'm expecting this will bounce back with rejections initially, as there are two holes that I've not filled:

  1. currently only supported on .NET standard 2.0 and above, due to the use of Mono.Posix.NETStandard nuget. I'm so far unable to find an equivalent for older versions.
  2. What to do on Windows when extracting a symlink.

Suggestions/recommendations for what to do here would be gratefully received.

I've added a test case, which is my initial use case - a source archive of the MoltenVK project on github, which contains symlinks. With local builds, and this PR, I can now use that archive in my project.

**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/422 **State:** closed **Merged:** No --- I've been trying to use SharpCompress in my project, and encountered tar archives containing symlinks to be a problem for extraction, so I've tried to implement support for symlinks. I'm expecting this will bounce back with rejections initially, as there are two holes that I've not filled: 1. currently only supported on .NET standard 2.0 and above, due to the use of Mono.Posix.NETStandard nuget. I'm so far unable to find an equivalent for older versions. 2. What to do on Windows when extracting a symlink. Suggestions/recommendations for what to do here would be gratefully received. I've added a test case, which is my initial use case - a source archive of the MoltenVK project on github, which contains symlinks. With local builds, and this PR, I can now use that archive in my project.
claunia added the pull-request label 2026-01-29 22:18:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1023