Add support for .tar.zst to http_archive
See original GitHub issueIn our project we’re using repository rules to download and uncompress prebuilt C++ libraries. Due to the large archive size we were evaluating different compression algorithms. One interesting candidate (which is also supported by CMake) is Zstandard. Right now it is not available within Bazel.
The Apache Commons Compress
now supports zstd through the zstd-jni library. Unfortunately it relies on a native library.
I prepared a proof-of-concept branch with some shortcuts in gjasny/zstd-decompression and would like to ask if you’d consider adding support for Zstandard compression given the icky JNI implementation.
(With aircompressor there is native implementation available bit it lacks Big Endian and Stream support)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Apparently this is how to use Zstd with tar if anyone else was ...
Apparently this is how to use Zstd with tar if anyone else was wondering: tar -I zstd -xvf archive.tar.zst
Read more >D15369 Add support for Zstd-compressed Tar-archives
This diff enables the filter in the libarchive plugin. There is still no mimetype in shared-mime-info, so a custom mimetype for zstd-compressed ...
Read more >Support for Zstandard compressed files/archives (!9) - GitLab
Support for Zstandard compressed tar archives has been picked up for tar ... Few months ago I added ZStd to Engrampa (the File...
Read more >How can I decompress an archive file having .zst or tar.zst?
The extention .zst means that the archive is compressed by zstd. https://github.com/facebook/zstd. The tar command has an option -I ...
Read more >Free Zstandard compression utility, open, extract ZST files
ZSTD utility does not support encryption (files of .zst type cannot be ... otherwise (to add multiple files and directories) use "TAR before"...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bazel-io fork 5.1
Here’s what I did for this: https://github.com/1e100/cloud_archive
This does require zstd support for
tar
, however, and does not rely entirely on built in facilities, but it can do authenticated downloads using the various cloud CLIs, validation, patching, and it does support Zstandard. And you don’t need to wait for 2 years to submit a patch. 😃