timestamps before 1980
andrewkslv opened this issue · comments
Andrew commented
ZIP does not support timestamps before 1980. So the case of plenty issues, for instance, it's already happened here mishoo/UglifyJS#2054
$ ll ./node_modules/cacache
total 216
-rw-r--r-- 1 watashi staff 17K Jan 1 1970 CHANGELOG.md
-rw-r--r-- 1 watashi staff 755B Jan 1 1970 LICENSE.md
-rw-r--r-- 1 watashi staff 20K Jan 1 1970 README.es.md
-rw-r--r-- 1 watashi staff 20K Jan 1 1970 README.md
-rw-r--r-- 1 watashi staff 58B Jan 1 1970 en.js
-rw-r--r-- 1 watashi staff 58B Jan 1 1970 es.js
-rw-r--r-- 1 watashi staff 5.3K Jan 1 1970 get.js
-rw-r--r-- 1 watashi staff 58B Jan 1 1970 index.js
drwxr-xr-x 7 watashi staff 224B Mar 2 20:05 lib
drwxr-xr-x 6 watashi staff 192B Mar 2 20:05 locales
-rw-r--r-- 1 watashi staff 121B Jan 1 1970 ls.js
drwxr-xr-x 4 watashi staff 128B Mar 3 12:37 node_modules
-rw-r--r-- 1 watashi staff 2.4K Jan 1 1970 package.json
-rw-r--r-- 1 watashi staff 1.7K Jan 1 1970 put.js
-rw-r--r-- 1 watashi staff 661B Jan 1 1970 rm.js
-rw-r--r-- 1 watashi staff 55B Jan 1 1970 verify.js
Kat Marchán commented
npm has been updated to set a timestamp in 1985, and recent releases of cacache use this.
Vladimir Starkov commented
@zkat why does npm need to set timestamp in the past?