Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tar: add GNU header (close #13) #14

Merged
merged 1 commit into from
Jan 27, 2025
Merged

tar: add GNU header (close #13) #14

merged 1 commit into from
Jan 27, 2025

Conversation

M0Rf30
Copy link
Contributor

@M0Rf30 M0Rf30 commented Jan 7, 2025

This is an attempt to add POSIX tar archive (GNU) variant support and address #13 request.

@mholt
Copy link
Owner

mholt commented Jan 7, 2025

Thanks for the PR. So, this looks to be for creating archives, but does it also successfully read from POSIX tar archives? Does Identify() still work?

@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Jan 27, 2025

Both Identify() and Extract() work. archive is succesfully read.

@mholt
Copy link
Owner

mholt commented Jan 27, 2025

Thanks @M0Rf30 . Will likely merge this in a moment. Do you know if the user has to set FormatGNU manually though? Or can it be detected automatically? (For reading)

@M0Rf30
Copy link
Contributor Author

M0Rf30 commented Jan 27, 2025

Variant is detected automatically from the reader of archive/tar. You only need to specify it on creation.

@mholt mholt merged commit 94f0fc3 into mholt:main Jan 27, 2025
3 checks passed
@mholt
Copy link
Owner

mholt commented Jan 27, 2025

Okie dokie then. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants