You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6c4d5f
Browse filesBrowse the repository at this point in the historyBrowse files
fix: show available workspace versions on version mismatch (#12615)
When registry resolution fails (404 or no matching version) and a
workspace project with the same name exists only at non-matching
versions, surface ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE with
the available workspace versions instead of the raw registry failure.
- pacquet: reuse ResolveFromWorkspaceError::NoMatchingVersionInsideWorkspace
rather than introducing a parallel error type; try_workspace_fallback
returns the workspace error and the caller decides which failures to
surface. Non-404 fetch errors propagate unchanged.
- TypeScript (pnpm11): the npm resolver's workspace fallback no longer
swallows the mismatch error; on the fetch-error path it is gated on
ERR_PNPM_FETCH_404 so auth, network, and server errors propagate
unchanged.
- Tests cover: 404 + exact/range mismatch, registry-200 without a
matching version, package absent from the workspace (404 propagates),
non-404 errors not masked, and the still-working fallback match.
Closes#1379
When a dependency cannot be found in the registry (404) or the registry has no matching version, and a workspace project with the same name exists only at non-matching versions, the error now reports the available workspace versions (`ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE`) instead of the raw registry failure [pnpm/pnpm#1379](https://github.com/pnpm/pnpm/issues/1379). Other registry failures (authorization, network, server errors) still propagate unchanged. The pacquet (Rust) resolver applies the same behavior.
0 commit comments