Re:GitHub Archive Program
by sebazzz on Wednesday November 13, 2019 @05:01PM
(#21530096)
Only to find a packages.json file without a packages-lock.json file checked in, to make it impossible to restore the node_modules directory.
[ Parent
| on HN ]
Re:GitHub Archive Program
by fiddlerwoaroof on Wednesday November 13, 2019 @08:30PM
(#21531895)
Don't worry npm and cockroaches will be the only things to survive a nuclear war
Re:GitHub Archive Program
by JimmyRuska on Wednesday November 13, 2019 @11:36PM
(#21532826)
Pretty sure the universe is running on some advanced version of Erlang. Erlang VM would survive until heat death of the universe, when it finally crashes the heartbeat program will kick in and we'll have a new big bang
Obligatory XKCD citing: https://xkcd.com/224/
Re:GitHub Archive Program
by dreamcompiler on Wednesday November 13, 2019 @11:36PM
(#21532823)
And Java and Keith Richards. But only one of these four things will still be interesting.
What’s the diff?
> Cockroaches
CockroachDB
The real problem is that NPM wouldn’t be around.
Better check in your node_modules directory the night before archive day so it’s included.
Re:GitHub Archive Program
by throwitinjunk on Wednesday November 13, 2019 @07:57PM
(#21531661)
> The real problem is that NPM wouldn’t be around.
I wouldn't call that a problem.
Re:GitHub Archive Program
by radicalriddler on Wednesday November 13, 2019 @06:42PM
(#21531069)
I don't think there would be enough storage capability to store that many node_module directories.
Assuming they are deduping based on content hash it shouldn’t be that big a deal. Worst case it’s the size of npm itself.
https://archiveprogram.github.com/#arctic-code-vault
> The snapshot will consist of the HEAD of the default branch of each repository, minus any binaries larger than 100KB in size. Each repository will be packaged as a single TAR file.
100KB is a very low limit, many repos will be useless
100KB per file would cover most JS projects. Even those with a checked nose_modules would be entirely included as the dependencies are already expanded.
However, many projects have resources (e.g PNG or JPG images) which are larger than 100kB. These will be lost...
Well yeah, but at that point you should just be cloning NPM on 2/2/20 as well.