Restore .pnpmfile.mjs workaround to fix broken CI - #682
Open
xxczaki wants to merge 1 commit into
Open
Conversation
The "Remove obsolete .pnpmfile.mjs workaround" commit (21a9105) assumed pnpm 11.6.0 no longer auto-loads a pnpmfile via configDependencies. That is not the case: pnpm still records a `pnpmfileChecksum` in the lockfile, so `pnpm install --frozen-lockfile` (Release) and the Docker build still try to load the now-deleted `.pnpmfile.mjs` and crash with ERR_MODULE_NOT_FOUND / "/.pnpmfile.mjs": not found. Restore the empty-hooks workaround and revert the lockfile checksum to the matching value. Verified `pnpm install --frozen-lockfile` passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
Author
|
Weekly maintenance sweep (2026-07-27) – re-confirmed this is still the single root cause blocking the whole repo.
Refined evidence:
This branch is still green and mergeable. Once merged, the remaining Renovate PRs need a rebase to pick up the restored checksum. No duplicate PR was opened; the merge decision is left to a human. |
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
mainCI (Build and deploy) and Release have been failing since commit21a9105"Remove obsolete .pnpmfile.mjs workaround":[ERROR] Error during pnpmfile execution ... Cannot find module '.../.pnpmfile.mjs'duringpnpm install --frozen-lockfile.failed to compute cache key: "/.pnpmfile.mjs": not found(theDockerfilestillCOPYs the file).All subsequent Renovate PRs also branch off this broken state.
Root cause
The removal commit assumed pnpm 11.6.0 no longer auto-loads a pnpmfile via
configDependencies(@pnpm/plugin-esm-node-path). That assumption is wrong for this version: pnpm still writes apnpmfileChecksumintopnpm-lock.yaml, so frozen installs and the Docker build still try to load the now-deleted.pnpmfile.mjsand crash withERR_MODULE_NOT_FOUND.Fix
.pnpmfile.mjsworkaround.pnpmfileChecksumto the value matching the restored file.Verified locally that
pnpm install --frozen-lockfilenow passes (it failed before this change). This returnsmainto green; outstanding Renovate PRs can then be rebased.🤖 Generated with Claude Code