Skip to content

fix(ci): put pnpm overrides in package.json for pnpm 9 - #29

Merged
xt0n1-t3ch merged 1 commit into
mainfrom
fix/pnpm9-overrides-location
Jul 10, 2026
Merged

fix(ci): put pnpm overrides in package.json for pnpm 9#29
xt0n1-t3ch merged 1 commit into
mainfrom
fix/pnpm9-overrides-location

Conversation

@xt0n1-t3ch

Copy link
Copy Markdown
Owner

Summary

Second CI fix for the 1.7.0 release: the Frontend job still failed at pnpm install --frozen-lockfile.

Root cause and fix

The esbuild override lived in pnpm-workspace.yaml, a location only pnpm 10+ reads. The repo pins pnpm@9.0.0 and CI runs it; pnpm 9 reads overrides from package.json pnpm.overrides. pnpm 9 therefore saw no current override while the lockfile recorded esbuild: 0.28.1, tripping ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Moving the override to package.json aligns the config pnpm 9 reads with the lockfile.

Proof

Reproduced and fixed with CI=true on pnpm 9.0.0: install --frozen-lockfile, check, lint, build and test all pass. The Rust job's check-bindings already passes on main after the .gitattributes LF fix (#28). Lockfile unchanged.

The esbuild override lived in pnpm-workspace.yaml, a location only pnpm 10+ reads.
The repo pins pnpm@9.0.0 and CI runs it; pnpm 9 reads overrides from package.json
pnpm.overrides. So pnpm 9 saw no current override while the lockfile recorded
esbuild: 0.28.1, and pnpm install --frozen-lockfile failed with
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Moving the override to package.json aligns the
config pnpm 9 reads with the lockfile.

Verified with CI=true and pnpm 9.0.0: install --frozen-lockfile, check, lint,
build and test all pass. Lockfile unchanged.
@xt0n1-t3ch
xt0n1-t3ch merged commit fed6908 into main Jul 10, 2026
@xt0n1-t3ch
xt0n1-t3ch deleted the fix/pnpm9-overrides-location branch July 10, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant