Skip to content

feat(zip): add support for symlink extraction#39

Merged
mholt merged 1 commit intomholt:mainfrom
spacelift-io:zip-symlin-extraction
Jun 2, 2025
Merged

feat(zip): add support for symlink extraction#39
mholt merged 1 commit intomholt:mainfrom
spacelift-io:zip-symlin-extraction

Conversation

@sephriot
Copy link
Contributor

@sephriot sephriot commented Jun 2, 2025

This PR fixes #37 issue

Previously opened as: #38

Signed-off-by: Jakub Wójtowicz <jakub.wojtowic@gmail.com>
Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thank you! I suppose you've tested that this works? What does Open() do on the symlink's FileInfo? Does it have the expected result?

@sephriot
Copy link
Contributor Author

sephriot commented Jun 2, 2025

What does Open() do on the symlink's FileInfo?

Well, inside ZIP archive, it is a regular file, so it simply reads it as you would read a non-symlink file.

Does it have the expected result?

It does.
I've tested it with files created by zip tool on MacOS (created by Info-ZIP) and files created by Go code directly.
Unfortunately, I have no Windows PC to verify whether it works there as well.

@sephriot sephriot requested a review from mholt June 2, 2025 13:27
@mholt mholt merged commit ade2afc into mholt:main Jun 2, 2025
3 checks passed
@mholt
Copy link
Owner

mholt commented Jun 2, 2025

Alrighty, cool. Thanks for your contribution!

@sephriot sephriot deleted the zip-symlin-extraction branch June 3, 2025 07:54
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.

Symlinks in ZIP have blank LinkTarget

2 participants