-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong tar command #143
Comments
Yes I agree, this looks wrong. |
What specifically is wrong? Are you able to provide a fix? Is it that it's missing the z for gzipped files? |
The x and f options say extract and specify the file. There are no options here for the specific type of compression used. The tar format itself does not do compression. |
The j option is needed for bzip2 and the z option for zlib compression. |
Cool, we'd definitely accept a PR fixing this. |
yeah i can break this out and PR it i suppose |
Yah I was going to submit a PR sometime this week. |
Awesome @awillis you on this one? I can focus on 142 if you are |
Yup, I've got it |
great i will focus on 142 then and get that in the next couple of days :-) |
@awillis any update on this? |
Sorry for the delay, been busy with work stuff. I don't have any test artifacts to test it with, perhaps you do? |
all ive got from nexus are tar.gz's etc, maybe this would be a good use case for the unit tests? |
A test with a tar.gz only is fine. We're not resting the tar programs ability to decompress archives, just the providers ability to pass the right options. You might also rename the tar.gz as tgz and test that, and decompress it using gzip and test with the resultant tar. |
Tested using Concerning the |
It's worth noting that (at least) GNU tar detects the compression type based on filename, so this will only fail when using older versions of tar. |
-1 ! |
this is surprising this works, assuming you are using a .tar file explicitly. This is the wrong subset of commands for file types and extraction.
The text was updated successfully, but these errors were encountered: