Skip to content

Handle GNUSparse archive entries during tar decompression#975

Open
kilianbartz wants to merge 2 commits intoouch-org:mainfrom
kilianbartz:main
Open

Handle GNUSparse archive entries during tar decompression#975
kilianbartz wants to merge 2 commits intoouch-org:mainfrom
kilianbartz:main

Conversation

@kilianbartz
Copy link
Copy Markdown

Currently, compressing files into a tar archive via ouch compress may create GNUSparse archive entries if appropriate, since the tar crate's Builder is initialized with the sparse option set to true. However, during decompression, this entry type is not handled which leads to silently skipped archive entries.
Handling this entry type using unpack_in matches the decompression result of GNU tar for sparse archive entries.

@tommady
Copy link
Copy Markdown
Collaborator

tommady commented May 5, 2026

Hi @kilianbartz,
Thanks for your contribution!

If you don't mind, could you add a simple e2e test for this case?

This will help ensure that the behavior doesn't break in the future (e.g., during refactors or dependency updates).

Thank you

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