tweag / clodl

Turn dynamically linked ELF binaries and libraries into self-contained closures.
BSD 3-Clause "New" or "Revised" License
164 stars 6 forks source link

zip files of closures are not reproducible #37

Open facundominguez opened 3 years ago

facundominguez commented 3 years ago

Se the discussion here https://github.com/tweag/clodl/pull/36#discussion_r540817939

Related to this, we had a request to use tar as an archiving format in #31.

If tar files were easier to make reproducible, it could be a better solution than insisting on zip files.

aherrmann commented 3 years ago

tar and gzip have reproducibility issues as well, see here. Bazel does not include an equivalent to @bazel_tools//tools/zip:zipper for tar. However, the pkg_tar rule does produce reproducible tar files, if applicable. In case of tar and gzip it is also possible to produce reproducible archives by passing the appropriate command-line flags. See here for a wrapper script that passes these flags.