Skip to content

Commit b166b5b

Browse files
committed
build: Prepare zipball build for Composer bump
Composer 2.6.4+ wants to have reproducible outputs so it preserves `mtime` when copying files: composer/composer#11663 This becomes an issue with `vendor/composer/ClassLoader.php`, which is copied from Nix store so it has `mtime` of 0 (1970-01-01), because that is not supported by ZIP: ValueError: ZIP does not support timestamps before 1980 Let’s disable strict timestamps to clamp the out-of-range timestamps to ZIP epoch. That argument was actually introduced because of reproducible builds: https://bugs.python.org/issue34097
1 parent fe35fd1 commit b166b5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/create-zipball.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def main() -> None:
165165
source_dir / filename,
166166
mode="w",
167167
compression=zipfile.ZIP_DEFLATED,
168+
strict_timestamps=False,
168169
) as archive:
169170
archive.prefix = Path("selfoss")
170171

0 commit comments

Comments
 (0)