Skip to content

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

Merged
mholt merged 1 commit intomholt:mainfrom
M0Rf30:feat/tar-gnu
Jan 27, 2025
Merged

tar: add GNU header (close #13)#14
mholt merged 1 commit intomholt:mainfrom
M0Rf30:feat/tar-gnu

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!

@M0Rf30 M0Rf30 deleted the feat/tar-gnu branch October 2, 2025 22:49
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.

2 participants