fix: pin pnpm@10.30.2 in web Dockerfile builder stage#22
Merged
Conversation
corepack enable pnpm runs before COPY . . so the packageManager field in package.json (pnpm@10.30.2) is not yet available. Corepack falls back to downloading the latest pnpm (11.1.1), which changed the global bin directory and breaks the subsequent pnpm add -g turbo call. Replace with corepack prepare pnpm@10.30.2 --activate to explicitly pin the version. Temporary workaround until upstream fixes the COPY ordering in the builder stage so package.json is present before corepack runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UsamaSadiq
approved these changes
May 13, 2026
3 tasks
UsamaSadiq
pushed a commit
that referenced
this pull request
May 14, 2026
* fix: pin pnpm@10.30.2 via corepack prepare in admin, live, space Dockerfiles corepack enable without a version pinned causes corepack to resolve pnpm from the workspace packageManager field (11.x), which moved the global bin to $PNPM_HOME/bin — breaking pnpm add -g in each builder stage. Add `corepack prepare pnpm@10.30.2 --activate` to builder and installer stages in Dockerfile.admin, Dockerfile.live, and Dockerfile.space, matching the pattern already used in Dockerfile.web (PR #22). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(space): use corepack prepare to pin pnpm@10.30.2 in installer stage Replace `corepack enable pnpm` with `corepack prepare pnpm@10.30.2 --activate` in the installer stage for parity with Dockerfile.admin and Dockerfile.live. Also restore explicit `corepack enable pnpm` in the base stage for clarity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
aznszn
added a commit
that referenced
this pull request
May 14, 2026
* fix: pin pnpm@10.30.2 via corepack prepare in admin, live, space Dockerfiles corepack enable without a version pinned causes corepack to resolve pnpm from the workspace packageManager field (11.x), which moved the global bin to $PNPM_HOME/bin — breaking pnpm add -g in each builder stage. Add `corepack prepare pnpm@10.30.2 --activate` to builder and installer stages in Dockerfile.admin, Dockerfile.live, and Dockerfile.space, matching the pattern already used in Dockerfile.web (PR #22). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(space): use corepack prepare to pin pnpm@10.30.2 in installer stage Replace `corepack enable pnpm` with `corepack prepare pnpm@10.30.2 --activate` in the installer stage for parity with Dockerfile.admin and Dockerfile.live. Also restore explicit `corepack enable pnpm` in the base stage for clarity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
6 tasks
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.
Summary
corepack enable pnpmruns beforeCOPY . .in the builder stage, sopackage.json(which declarespackageManager: pnpm@10.30.2) isn't present yetpnpm add -g turbocorepack prepare pnpm@10.30.2 --activateto explicitly pin the version before any files are copied inTest plan
make dev.build.plane.webon the devstack and confirm the build completes successfully🤖 Generated with Claude Code