node-archiver icon indicating copy to clipboard operation
node-archiver copied to clipboard

Add new option to ignore file timestamps and produce archives with consistent hash

Open redneckz opened this issue 4 years ago • 4 comments

Related to the following issue https://github.com/archiverjs/node-archiver/issues/416

redneckz avatar Sep 11 '20 14:09 redneckz

Hi @ctalkington , any progress on this PR? I will appritiate any feedback from you or your team.

redneckz avatar Sep 21 '20 09:09 redneckz

Hey @ctalkington, are there any updates, or has this functionality already been implemented in some other way?

florian-g2 avatar Jul 04 '22 12:07 florian-g2

This would be a very useful feature to have when building with Bazel, which relies on deterministic artifacts for good remote cache performance.

kormide avatar Dec 24 '22 21:12 kormide

Note that I was able to work around this by fixing the date in the file entry when appending to a zip:

zip.append(content, {name: "foo.txt", date: new Date(0)});

kormide avatar Dec 25 '22 21:12 kormide