-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Decode .tar.gz
archives using liblzma (via WebAssembly)
#173
Conversation
6fa179a
to
08a9bbe
Compare
Tested locally with this script: import fs from "node:fs";
import tar from "tar";
import { decompress } from "./dist/publish-to-bcr/infrastructure/xzdec/xzdec.js";
async function main() {
fs.mkdirSync("../../extracted-m4", {recursive: true });
let reader = fs.createReadStream("../../rules_m4-v0.2.3.tar.xz");
let writer = tar.x({
cwd: "../../extracted-m4"
});
decompress(reader, writer);
return;
}
main()
|
Locally I get this error when I try to build.
Is there a way to bring in libzstd hermetically under Bazel? |
Are you able to add a brief README in the |
Once this is ready I can deploy and we can test a release of your ruleset. It would be nice if there was an e2e for this but I'm not expecting you to also write a compression function. |
Looks some of the macOS builds of LLVM have a known packaging problem where they pick up a stray
LLVM v18.1.8 and v19.1.2 both seem to be packaged correctly, but |
Done. |
Fixes #169