3 ms·
According to diffoscope, the (only) differences are in the archive member modification times: --- ../0.1.0.zip +++ 0.1.0.zip ├── zipinfo -v {} │ @@ -28
by yrro 11y ago
According to diffoscope, the (only) differences are in the archive member modification times:
--- ../0.1.0.zip
+++ 0.1.0.zip
├── zipinfo -v {}
│ @@ -28,15 +28,15 @@
│ file system or operating system of origin: MS-DOS, OS/2 or NT FAT
│ version of encoding software: 0.0
│ minimum file system compatibility required: MS-DOS, OS/2 or NT FAT
│ minimum software version required to extract: 1.0
│ compression method: none (stored)
│ file security status: not encrypted
│ extended local header: no
│ - file last modified on (DOS date/time): 2016 Apr 8 06:33:12
│ + file last modified on (DOS date/time): 2016 Apr 8 14:33:12
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 local
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 UTC
│ 32-bit CRC value (hex): 00000000
│ compressed size: 0 bytes
│ uncompressed size: 0 bytes
│ length of filename: 13 characters
│ length of extra field: 9 bytes
│ @@ -63,15 +63,15 @@
│ version of encoding software: 0.0
│ minimum file system compatibility required: MS-DOS, OS/2 or NT FAT
│ minimum software version required to extract: 1.0
│ compression method: deflated
│ compression sub-type (deflation): normal
│ file security status: not encrypted
│ extended local header: no
│ - file last modified on (DOS date/time): 2016 Apr 8 06:33:12
│ + file last modified on (DOS date/time): 2016 Apr 8 14:33:12
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 local
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 UTC
│ 32-bit CRC value (hex): 570b4391
│ compressed size: 52 bytes
│ uncompressed size: 78 bytes
│ length of filename: 23 characters
│ length of extra field: 9 bytes
│ @@ -97,15 +97,15 @@
│ file system or operating system of origin: Unix
│ version of encoding software: 2.3
│ minimum file system compatibility required: MS-DOS, OS/2 or NT FAT
│ minimum software version required to extract: 1.0
│ compression method: none (stored)
│ file security status: not encrypted
│ extended local header: no
│ - file last modified on (DOS date/time): 2016 Apr 8 06:33:12
│ + file last modified on (DOS date/time): 2016 Apr 8 14:33:12
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 local
│ file last modified on (UT extra field modtime): 2016 Apr 8 13:33:13 UTC
│ 32-bit CRC value (hex): bc890775
│ compressed size: 59 bytes
│ uncompressed size: 59 bytes
│ length of filename: 20 characters
│ length of extra field: 9 bytes
(rest of output omitted as it's too long for an HN comment; the full output can be found at http://paste.debian.net/432708/ http://paste.debian.net/432708/)
- zokier 11y agoTimezone difference, with extra DST madness mixed in? 13:33 is UTC, 14:33 is UTC+DST, 06:33 is Pacific Time+DST
- creshal 11y agoZIP is a fun file format.
- chungy 11y agoThanks for spotting this. If I set TZ before running the command, I actually can reproduce the different result. Apparently I'm in the same time zone as GitHub :) If you do "TZ=America/Los_Angeles git archive..." for a Zip file, you should then be capable of making a bit-exact file.