summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-03-08 16:51:55 +0100
committerGitHub <noreply@github.com>2023-03-08 15:51:55 +0000
commit22d4e7903719b8f4039ea1875e15bd0bf3fe550b (patch)
tree1a8e7cb138d408f9894e9d9aa6a103a53ac76bb2 /var
parent2777ca83eb3e90ea8ef2f92208dd8dbf67cba404 (diff)
downloadspack-22d4e7903719b8f4039ea1875e15bd0bf3fe550b.tar.gz
spack-22d4e7903719b8f4039ea1875e15bd0bf3fe550b.tar.bz2
spack-22d4e7903719b8f4039ea1875e15bd0bf3fe550b.tar.xz
spack-22d4e7903719b8f4039ea1875e15bd0bf3fe550b.zip
buildcache create: reproducible tarballs (#35623)
Currently `spack buildcache create` creates compressed tarballs that differ between each invocation, thanks to: 1. The gzip header containing mtime set to time.time() 2. The generated buildinfo file which has a different mtime every time. To avoid this, you have to explicitly construct GZipFile yourself, since the Python API doesn't expose the mtime arg, and we have to manually create the tarinfo object for the buildinfo metadata file. Normalize mode: regular files & hardlinks executable by user, dirs, symlinks: set 0o755 permissions in tarfile; other files use 0o644
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions