5 ms·
As the maintainer for Windows in-box bsdtar/libarchive, I'd love to learn more! How are the tarballs you get out of it invalid? Do you have a sample file I cou
by DHowett 3y ago
As the maintainer for Windows in-box bsdtar/libarchive, I'd love to learn more!
How are the tarballs you get out of it invalid? Do you have a sample file I could take a look at?
FWIW, since it is bsdtar it supports a few additional options[1] to control the format. You can pass --format=gnutar, --format=zip, --format=ustar, --format=7zip, ... for a bit more flexibility and to create archives in other formats.
[1]: https://man.freebsd.org/cgi/man.cgi?query=bsdtar&sektion=1&format=html https://man.freebsd.org/cgi/man.cgi?query=bsdtar&sektion=1&f...
- reactordev 3y agoI'm sure it was user error but `tar -czf` failed to produce a tarball I could untar on a server. Maybe due to it calling the wrong zip.exe? Maybe unzip on the server was using a different zlib or something? I'm not quite sure what it was but I decided to switch to using tar.xz for nix and zip for windows. I'll see if my old devops code history can produce a bad-state tarball and get back to you.