Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed repro. I confirmed the root cause: the shared resolver narrowed portable-lockfile resolution whenever supportedArchitectures was configured, so any re-resolution path could discard optional packages for other platforms. Plain install often hid it by taking the fresh-lockfile path without rewriting the lockfile.

PR #1156 fixes this by keeping portable lockfile resolution in accept_all mode while continuing to apply supportedArchitectures during fetch/link filtering. With the supplied esbuild repro, the filtered add now retains all 45 foreign-platform entries; the lockfile diff contains only is-odd and its dependency.

#1156

This comment was generated by Codex.

Replies: 2 comments

Comment options

jdx
Jul 28, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by mwolson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants