Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

timestamps before 1980 #125

Closed
andrewkslv opened this issue Mar 3, 2018 · 2 comments
Closed

timestamps before 1980 #125

andrewkslv opened this issue Mar 3, 2018 · 2 comments

Comments

@andrewkslv
Copy link

andrewkslv commented Mar 3, 2018

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
@zkat
Copy link
Owner

zkat commented May 16, 2018

npm has been updated to set a timestamp in 1985, and recent releases of cacache use this.

@zkat zkat closed this as completed May 16, 2018
@iamstarkov
Copy link

@zkat why does npm need to set timestamp in the past?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants