Skip to content

fix(arborist): build inventory before calling workspaceNodes#9762

Open
crhallberg wants to merge 1 commit into
npm:latestfrom
crhallberg:patch-1
Open

fix(arborist): build inventory before calling workspaceNodes#9762
crhallberg wants to merge 1 commit into
npm:latestfrom
crhallberg:patch-1

Conversation

@crhallberg

Copy link
Copy Markdown

What / Why

When running "npm update", we call Arborist's reify function. Initializing the tree loads the edgesOut and depQueues them, but that queue isn't resolved before we apply user requests. When applyUserRequests calls workspaceNodes, it is working with an dehydrated inventory. This causes it to throw the warning (see #5863) and always return an empty array (no negative effects as far as I can tell).

SOLUTION: apply user requests after resolving the dependencies queue.

References

Closes #5863: "workspaces in filter set, but no workspace folder present" warning.

Resolves npm#5863: "workspaces <package name> in filter set, but no workspace folder present" warning.

When running "npm update", we call Arborist's reify function. Initializing the tree loads the edgesOut and depQueues them, but that queue isn't resolved before we apply user requests. When `applyUserRequests` calls `workspaceNodes`, it is working with an empty inventory. This causes it to throw the warning (see npm#5863) and always return an empty array.

SOLUTION: apply user requests after resolving the dependencies queue.
@crhallberg crhallberg requested review from a team as code owners July 13, 2026 22:03
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.

[BUG] Update command gets workspaces <package name> in filter set, but no workspace folder present

1 participant