question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for .tar.zst to http_archive

See original GitHub issue

In 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brentleyjonescommented, Mar 21, 2022

@bazel-io fork 5.1

0reactions
1e100commented, Jun 19, 2021

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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found