Skip to content

Fix pnpm build approval so mise install succeeds - #1024

Merged
dahlia merged 1 commit into
fedify-dev:mainfrom
moreal:fix-mise-install
Sep 5, 2026
Merged

Fix pnpm build approval so mise install succeeds#1024
dahlia merged 1 commit into
fedify-dev:mainfrom
moreal:fix-mise-install

Conversation

@moreal

@moreal moreal commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

mise install currently fails on a fresh checkout. The pnpm-install deps provider aborts with ERR_PNPM_IGNORED_BUILDS because every listed dependency's build script is treated as unapproved.

Two things caused this. package.json declared pnpm.onlyBuiltDependencies, but pnpm 11.25.0 no longer reads that field from package.json; it now lives under allowBuilds in pnpm-workspace.yaml. pnpm-workspace.yaml already had an allowBuilds section, but most entries were left as the literal placeholder string "set this to true or false" instead of an actual boolean, so pnpm did not treat them as approved.

This PR removes the stale pnpm.onlyBuiltDependencies field and replaces the placeholder values with explicit true/false decisions, allowing builds for dependencies already trusted elsewhere in the workspace (better-sqlite3, lmdb, msgpackr-extract, @parcel/watcher, @netlify/content-engine, content-engine, contentful, netlify-cli) and disabling builds for two that don't need a native/postinstall step in this workspace (es5-ext, unix-dgram).

Related Links

AI disclosure

Diagnosed and fixed with assistance from Claude Code (Claude Sonnet 5): the tool ran mise install, read the pnpm error output, identified both root causes, and proposed the allowBuilds/package.json edits, which I reviewed before committing.

pnpm 11.25.0 no longer reads the pnpm.onlyBuiltDependencies field
from package.json, and the allowBuilds entries in pnpm-workspace.yaml
were left as unresolved "set this to true or false" placeholders.
Both left every listed dependency's build script unapproved, so pnpm
aborted with ERR_PNPM_IGNORED_BUILDS during mise install.

Assisted-by: Claude Code:claude-sonnet-5
@netlify

netlify Bot commented Sep 5, 2026

Copy link
Copy Markdown

Deploy Preview for fedify-json-schema canceled.

Name Link
🔨 Latest commit caa0e5c
🔍 Latest deploy log https://app.netlify.com/projects/fedify-json-schema/deploys/6a9b6503e4770c00085df4b2

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Team

Run ID: ba79e45b-63bd-4d14-ab3c-49a507154f31

📥 Commits

Reviewing files that changed from the base of the PR and between b6fdaec and caa0e5c.

📒 Files selected for processing (2)
  • package.json
  • pnpm-workspace.yaml
💤 Files with no reviewable changes (1)
  • package.json

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The pnpm configuration removes the package-level esbuild build permission and expands workspace-level build permissions. It also explicitly disables builds for es5-ext and unix-dgram.

Changes

pnpm build policy

Layer / File(s) Summary
Workspace build permissions
package.json, pnpm-workspace.yaml
The workspace package list remains unchanged. Build scripts are allowed for additional dependencies, while builds for es5-ext and unix-dgram are denied. The package-level esbuild permission is removed.

Estimated code review effort: 2 (Simple) | ~5 minutes

Merge Risk: ⚪ Minimal · up to caa0e

This moves dependency build-script permissions into the workspace configuration with explicit enabled and disabled packages, allowing fresh installs to complete under pnpm’s build approval rules. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: correcting pnpm build approval so mise install succeeds.
Description check ✅ Passed The description directly explains the mise install failure, the pnpm configuration changes, and the explicit build approvals and denials.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@moreal
moreal marked this pull request as ready for review September 5, 2026 01:04
@moreal
moreal requested a review from dahlia as a code owner September 5, 2026 01:04
@dahlia
dahlia merged commit 8557cee into fedify-dev:main Sep 5, 2026
25 checks passed
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.

2 participants