A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pnpm/pnpm/issues/8204 below:

Changing the index files name in the package store · Issue #8204 · pnpm/pnpm · GitHub

Contribution Describe the user story

We currently save index files by the integrity of the package. We also save the name and version of the package as specified in the package.json inside the package's tarball. However, sometimes the name and version don't match the real name and version in the registry. As a result, we have this issue: #4724

Describe the solution you'd like

Instead of saving the index file by package integrity, we should save it by package integrity + real package name (not the one found in the bundled package.json file) + real package version.

We could also move all the index files into a different directory to make it easier to search for them.

Describe the drawbacks of your solution

Index file duplication when different packages have the same tarball (very rare).

Describe alternatives you've considered

All other alternatives would sacrifice security and/or reliability. If we would remove the name/version from the index file, a broken lockfile could make pnpm to install a tarball of a different package from the store.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4