3 ms·
they actually do work, but only under powershell. There's also a tar.exe but I haven't managed to get a valid tarball out of it.
by reactordev 3y ago
they actually do work, but only under powershell. There's also a tar.exe but I haven't managed to get a valid tarball out of it.
- DHowett 3y agoAs 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.