Repository navigation
fix(cli): tier 2 init works on pnpm 11, and pnpm 12 accepts the repos it makes - #464
Merged
Merged
Conversation
pnpm 11 locks a tarball it already has in its store as
`resolution: {tarball: ...}` with no integrity, then refuses that entry on
the next install. Tier 2 init installs twice (the second adds the workerd
pin), so on any machine that had installed the release before, it failed
with only "Dependency installation failed": install ran pnpm with the
silent reporter. pnpm 12 refuses the same entry before running any script,
so `pnpm patchy` stopped working in those repos.
After each install, init and refresh now write the integrity from
GET /api/release into the patchy entry when pnpm left it out, and refresh
first repairs a lockfile an older CLI left for the same pin. A failed
install ends with pnpm's first error line. The packed tier 2 journey now
inits its tier 1 repo first, so the tier 2 init runs on a warm store as it
would on a real machine.
Fixes #459.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
allisonmahmood
force-pushed
the
fix/459-lockfile-integrity
branch
from
October 1, 2026 22:35
59f26e2 to
509d441
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
patchy init --tier 2failed with a bare "Dependency installation failed" on pnpm 11 whenever the release tarball was already in the store, and pnpm 12 refused to run anypnpm patchy …in a repo pnpm 11 had written. pnpm 11 locks the instance-served tarball without anintegrity, then rejects its own lockfile on the next install; pnpm 12 rejects it outright.After every install in init and refresh, the CLI now writes the release's sha512 (which it already gets from
GET /api/release) into that one lockfile entry, including pnpm's quoted form for IPv6 hosts, and repairs an older lockfile for the same pin. A failed install now relays pnpm's first error line, with URL credentials, queries and fragments stripped.Closes #459
How it was verified
pnpm testpasses locally (patchy suite, 500 tests)pnpm test:packed-tier2-e2enow initializes the tier 2 repo on a warm store, as on a real machine: it fails without the fix with the issue's error and passes with it.pnpm test:packed-cli-e2epasses.pnpm patchy --versionunder pnpm 12.8.1.Release impact
Made by Claude Opus 5.5 subagents via Claude Code; reviewed by GPT 6.1 Sol via codex.