Skip to content

fix(arborist): don't flag inert optional deps in strict-allow-scripts - #9602

Merged
owlstronaut merged 1 commit into
release/v11from
backport/v11/9597
Jun 23, 2026
Merged

fix(arborist): don't flag inert optional deps in strict-allow-scripts#9602
owlstronaut merged 1 commit into
release/v11from
backport/v11/9597

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #9597 to release/v11.

…#9597)

Fixes #9562.

`strict-allow-scripts` walked the ideal tree and rejected inert optional
deps like `fsevents` on Linux, even though reify removes them before any
install script runs. The shared `collectUnreviewedScripts` walk now
skips inert nodes, so the strict check matches what actually installs.
`approve-scripts` (actual tree) was already correct.

(cherry picked from commit 7655822)
@owlstronaut
owlstronaut merged commit b2e6338 into release/v11 Jun 23, 2026
76 checks passed
@owlstronaut
owlstronaut deleted the backport/v11/9597 branch June 23, 2026 13:48
@github-actions github-actions Bot mentioned this pull request Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants