Closed rgmz closed 5 months ago
I tested the reproducer against HEAD
and it doesn't return that error. It seems this was fixed in https://github.com/mholt/archiver/commit/24fa33e9b6a0b17e8418ffc90a94a06ab79bd5c2 (#386), which isn't included in the latest release.
What version of the package or command are you using?
The latest release of v4,
v4.0.0-alpha.8
What are you trying to do?
Recursively extract a
.tar.gz
file.What steps did you take?
Run the following reproducer
What did you expect to happen, and what actually happened instead?
I expected that
archiver.Identify
would returnarchiver.ErrNoMatch
as the file isn't an archive. However, a different error is returned.How do you think this should be fixed?
I'm not sure, it depends on the cause
Please link to any related issues, pull requests, and/or discussion
https://github.com/trufflesecurity/trufflehog/issues/2928
Bonus: What do you use archiver for, and do you find it useful?
I use archiver via TruffleHog. It is quite useful in that regard. :)