ci(docker): pin pnpm to 10.33.0 to fix frozen-lockfile build failure#51
Merged
Conversation
The Docker build's `pnpm install --frozen-lockfile` step failed because Corepack provisioned the latest pnpm (11.x), which no longer reads the `pnpm` field (overrides, onlyBuiltDependencies) from package.json. The override set then read as empty and no longer matched the lockfile, aborting the frozen install with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Pin pnpm to 10.33.0 (the version that generated the committed lockfile) so Corepack provisions a pnpm that still honors those settings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fz7snGnRQZtrUPqwaBCLyV
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.
Problem
The Docker image build (
docker.yml) has been failing on everymainpush at the frontend stage:The Dockerfile runs
corepack enable && pnpm install --frozen-lockfile. With nopackageManagerpin, Corepack provisions the latest pnpm (11.x), which no longer reads thepnpmfield (overrides,onlyBuiltDependencies) frompackage.json. The override set then reads as empty, no longer matches the lockfile, and the frozen install aborts.This is not specific to any one change — all recent
mainpushes failed identically. The last green Docker build was adevcommit ("pin pnpm to 10.18.1 via packageManager field") whose pin never reachedmain.Fix
Pin pnpm via the
packageManagerfield to 10.33.0 — the exact version that generated the committedpnpm-lock.yaml— so Corepack provisions a pnpm that still honors thepnpm.overridessettings and agrees with the lockfile.Verification
A broken Docker publish is user-visible per the repo's release policy, so this adds a
### Fixedbullet under[Unreleased].🤖 Generated with Claude Code
Generated by Claude Code