Use zstd compression with cachix

This commit is contained in:
Ben Wolsieffer 2023-09-28 22:03:47 -04:00
parent 148dc07305
commit b82b47d49c
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ function query(name, drvPath) {
exports.query = query;
function push(name, paths) {
return __awaiter(this, void 0, void 0, function* () {
yield execFile('cachix', ['push', name].concat(paths));
yield execFile('cachix', ['--compression-method', 'zstd', 'push', name].concat(paths));
});
}
exports.push = push;

View file

@ -12,5 +12,5 @@ export async function query(name: string, drvPath: string) {
}
export async function push(name: string, paths: string[]) {
await execFile('cachix', ['push', name].concat(paths))
}
await execFile('cachix', ['--compression-method', 'zstd', 'push', name].concat(paths))
}