Repository navigation
build: pin pnpm 12.9.1 - #560
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
build/pnpm-12
branch
from
October 6, 2026 21:53
dab7b73 to
8341a7f
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 7, 2026
When `patchy init` or `refresh` can't install dependencies on pnpm 12, the CLI says only `pnpm: Error: × installing dependencies`. pnpm 12 is what `npm i -g pnpm` installs today, so new users and their agents get no reason. pnpm 12's default output puts the reason in a chain of causes after that first line, wrapped at about 80 columns and often without an `ERR_PNPM_` code, and the CLI relays only the first line. The CLI now runs `pnpm install` with `NO_GRAPHICS=1`. pnpm 12 then prints one unwrapped `Caused by:` line per cause and puts its code on a `diagnostic code:` line; pnpm 11 ignores the variable. `installFailureReason` relays the code and the causes, for example `pnpm: Failed to resolve dependency tree: Failed to resolve dependency: Tarball server returned HTTP 404 for http://…/patchy-0.0.1.tgz`. pnpm 11 output is relayed as before. Each part is still redacted. Rejoining the wrapped default output can't be made safe: a wrap inside a URL's scheme hides the URL from redaction. The unwrapped output avoids that. Redaction also closes older gaps: a URL now runs to the next ASCII whitespace, so an uppercase scheme or a quote or non-breaking space in its path no longer leaks the query, and a password containing `@` is stripped in full. The one visible change for pnpm 11: a quoted URL with a query loses its closing quote. Found while moving the repo to pnpm 12 (#560), whose CI runs the CLI's installs on pnpm 12. The refresh-failure test passes on both pnpm 11 and 12 locally. Made by Claude Opus 5.5 via Claude Code in T3 Code; reviewed by GPT 6.1 Sol via codex. --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
pnpm 12 has been the stable line since August. Move the packageManager, engines and mise pins and the image build docs to 12.9.1. The lockfile gains only pnpm's own self-pin document; a frozen install of the existing lockfile succeeds unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
pnpm 12 writes its own version as a first lockfile document when it manages packageManager, and GitHub's dependency graph reads only that document (dependabot/dependabot-core#15904), which would hide every dependency from security alerts. pmOnFail: ignore keeps the lockfile identical to pnpm 11's. pnpm 12 also refuses a deploy that leaves a workspace patch unused; the async-exit-hook patch only fixes a test dependency, so the image's production deploy allows it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
pnpm 12 hard-links identical store files to one inode, so the offline registry's tar wrote three of TypeScript's identical lib files as hard link entries, which pnpm 12 drops on install, failing the tier 1 starter typecheck. Registry tarballs never carry hard links; --hard-dereference packs them as plain files. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
allisonmahmood
force-pushed
the
build/pnpm-12
branch
from
October 7, 2026 01:02
8341a7f to
99c5dd5
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 7, 2026
What's new for this deploy, release 7 (`b765183..48704b0`). - Fixed: **A patch that fails to set up says why** (#561) - Behind the scenes: the libraries Patchy is built on are up to date (#558) - Behind the scenes: Patchy builds with the newest version of its package manager (#560) - No line: Dependabot's workerd ignore (#557) is tooling churn The range also holds #573, release 6's own What's new entry, left out as usual. Made by Claude Opus 5.5 via Claude Code in T3 Code. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
The repo pins pnpm 11.28.3 (packageManager, engines, mise), while pnpm 12 has been the stable line since August;
latestis 12.9.1.This moves all three pins and the server image build docs to 12.9.1. Most of 12.0's breaking changes don't touch this workspace: no git dependencies, no
--frozen-lockfile false, and pnpm 12's stricterpnpm-workspace.yamlvalidation accepts every setting we use. Two did:The lockfile. When pnpm manages its own version, pnpm 12 writes itself into a new first lockfile document, and GitHub's dependency graph still reads only that first document (dependabot/dependabot-core#15904, open). On this repo that would show zero dependencies, close the open security alerts and let
dependency-reviewpass blind.pmOnFail: ignorestops pnpm switching versions itself, so the lockfile stays byte-identical to pnpm 11's. mise, CI (pnpm/action-setup) and corepack already install thepackageManagerversion, andengines.pnpmstill refuses pnpm 11.The image deploy. pnpm 12 fails
deploy --prodwhen a workspace patch goes unused. Our one patch (async-exit-hook) fixes a test dependency, so the image build's production deploy passesallow-unused-patches; regular installs keep the check.The CLI's offline test registry. It packs installed packages with
tar, and pnpm 12 hard-links identical store files to one inode, so three of TypeScript's identical lib files went in as hard-link entries, which pnpm 12 drops on install. That broke the tier 1 starter's typecheck in the CLI tests. Real registry tarballs never carry hard links; the fixture now passes--hard-dereference.The CLI-driven patch repo installs in CI now run on pnpm 12, the version a new user installs today. That surfaced a real CLI bug for pnpm 12 users, fixed separately in #561: a failed install said only
× installing dependencies. That fix landed first, as #561. Patch repos are unaffected: they use whatever pnpm the user has.Made by Claude Opus 5.5 via Claude Code in T3 Code; reviewed by GPT 6.1 Sol via codex.