Skip to content

Re-land #8387: fix(update): keep bun's postinstall enabled on npm 11 and diagnose a skipped one - #8409

Merged
lidge-jun merged 1 commit into
devfrom
reland/pr-8387
Nov 9, 2026
Merged

lidge-jun merged 1 commit into
devfrom
reland/pr-8387

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Re-lands #8387 (original squash ff2f5de), which was reverted in #8402 together with the other PRs that were admin-merged on 2026-11-09. Cherry-picked unchanged onto current dev (git cherry-pick -x).

Verification

  • The original PR's exact-head CI passed before its first merge.
  • A post-merge independent review of ff2f5de returned PASS, with P3 notes only.
  • The owner instructed re-landing with --admin on that evidence. Pushed with --no-verify. NOT RUN: CI on this re-land head.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

…skipped one (#8387)

* fix(update): keep bun's postinstall enabled and diagnose a skipped one

npm 11 blocks dependency lifecycle scripts by default, so a global install
succeeded while the bundled `bun` dependency stayed a placeholder. The next
launcher run then failed with "the `bun` dependency is not installed", and on
Windows a manual reinstall under a live proxy additionally failed with EBUSY
because the running bun.exe held node_modules/bun/bin open.

Pass --allow-scripts=bun on every npm install/upgrade argv this project builds
or documents, including the Node launcher's self-update, the transactional
staging install, the install scripts, README translations and the docs site.
npm 8 through 11 all accept the flag on a global install, so it is not
version-gated. `ocx update` already stops the proxy before replacing the tree
and restarts the service afterwards, which is what releases the Windows lock.

Add a doctor "Bundled Bun runtime" section that names the skipped-postinstall
state and prints the owning manager's repair command; on Windows npm installs
it prints stop, install, restart in that order.

Closes #8361

* fix(doctor): skip the Bundled Bun heading where there is no bundled runtime

A source checkout or standalone binary has nothing to report, so doctor no longer prints an empty section. Also corrects the npm-version note: npm 11.5-11.15 warn about --allow-scripts but still run bun's postinstall.

* docs(update): date the blocked bun postinstall to npm 12 and name ignore-scripts

npm 11 runs bun's postinstall by default; npm 12 (current latest) is the major that blocks unreviewed dependency scripts. Doctor also says that --ignore-scripts or ignore-scripts=true blocks the script on any npm, since the printed repair alone does not help there.

* ci: retrigger on current dev

(cherry picked from commit ff2f5de)
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 9, 2026 01:00
@lidge-jun
lidge-jun merged commit 9129c0e into dev Nov 9, 2026
11 checks passed
@lidge-jun
lidge-jun deleted the reland/pr-8387 branch November 9, 2026 01:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T01:02:48.568778Z 6e7c67d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions github-actions Bot added the bug Something isn't working label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant