Files
pnpm/installing
Adam Lyrén 6f382f42ee fix: preserve integrity of remote tarball dependencies on re-resolution (#12096)
* fix: preserve integrity of remote tarball dependencies on re-resolution

Re-resolving a remote tarball dependency without re-fetching it (e.g. `pnpm update`)
produced a resolution with no integrity, so the previously recorded integrity was
dropped from the lockfile, breaking later installs with ERR_PNPM_MISSING_TARBALL_INTEGRITY.

Carry the integrity over from the previous lockfile entry when the rebuilt tarball
resolution lost it and the URL is unchanged. This complements #12040, which fixes the
same class of bug in the package-requester layer but does not cover this re-resolution path.

Closes #12067.

* test: cover integrity carryover on tarball re-resolution

* refactor: check integrity before type in the tarball carryover guard

* perf(pacquet): reuse the warm-store tarball on re-resolution instead of re-downloading

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-06-01 16:06:59 +02:00
..
2026-05-29 17:26:13 +02:00
2026-05-29 17:26:13 +02:00
2026-05-29 17:26:13 +02:00
2026-05-27 15:15:01 +02:00
2026-05-29 17:26:13 +02:00