Skip to content

v12: name the failing dependency and its parents in resolution errors (v11 pkgsStack parity) #73

Closed
pnpm/pnpm
#16613

Description

@zkochan

pnpm v11 attaches pkgsStack to resolution errors, and the reporter prints "This error happened while installing the dependencies of @". pnpm v12 has no equivalent. A failure in a transitive dependency surfaces as Failed to resolve dependency tree: Failed to resolve dependency: <inner error>, with no alias, specifier, or parent chain (see pnpm/pnpm#16590).

The tree walker already has the data: ChildEdge::ancestor_ids and pkgs_info_from_ids in pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/. Wrap a failed edge's error with the wanted alias and bare specifier and the ancestor name@version chain, then render it the way the v11 reporter does.

Follow-up to pnpm/pnpm#16592.


Written by an agent (Claude Code, claude-opus-5-5).

Activity

  1. zkochan commented on Oct 5, 2026

    @zkochan
    MemberAuthor

    Opened pnpm/pnpm#16613 to address this task. Attaches the failing dependency alias/specifier and its parent dependency chain to resolution errors, and renders that context in diagnostics.


    Written by an agent (Codex, GPT-6).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions