Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

shrinkwrap should be registry-agnostic when sourcing package tarballs #6253

Open
othiym23 opened this issue Sep 21, 2014 · 1 comment
Open

Comments

@othiym23
Copy link
Contributor

Specifically, when _resolved is an HTTP[S] link to a tarball, save the shasum as well as the URL, and ask the cache if it has a package with that shasum before hitting the network. This relies upon the content-addressible tarball cache that's part of the cache rewrite, but it should be easy enough to add once that functionality is available.

@othiym23
Copy link
Contributor Author

othiym23 commented Sep 1, 2016

This is absolutely a part of the roadmap for improving shrinkwrap as well as the putative, oft-discussed, never-implemented npm CLI cache rewrite. It should be possible to shrinkwrap a package by tying the lock to the package's contents rather than its URL of origin.

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

No branches or pull requests

1 participant