You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we store more information in the lockfile it should be possible to not need to reach into the global cache to get information for running a Deno program that already has the tarballs cached.
Right now we load:
cpu, os
dependencies
dist
optional dependencies
bin
scripts
deprecated
But probably in the case that the tarballs are cached we can avoid reading the packuments entirely and only require reading them for npm resolution or for fetching the tarballs (Ideally we don't store tarball urls in the lockfile because it can lead to someone changing urls in the lockfile to cause security issues).
This would require a new lockfile version.
Also, we should investigate how we optimize for these three scenarios:
information required when everything is cached (this issue)
information required when doing npm resolution
information required when the package itself is not cached (info to download tarballs)
It might mean doing something like downloading the packument and then creating a subset from it (ex. a shortened version of the packument that only has the information we need).
If we store more information in the lockfile it should be possible to not need to reach into the global cache to get information for running a Deno program that already has the tarballs cached.
Right now we load:
But probably in the case that the tarballs are cached we can avoid reading the packuments entirely and only require reading them for npm resolution or for fetching the tarballs (Ideally we don't store tarball urls in the lockfile because it can lead to someone changing urls in the lockfile to cause security issues).
This would require a new lockfile version.
Also, we should investigate how we optimize for these three scenarios:
It might mean doing something like downloading the packument and then creating a subset from it (ex. a shortened version of the packument that only has the information we need).
Related:
The text was updated successfully, but these errors were encountered: