Skip to content

workspace use should reject ambiguous same-basename members #3165

Description

@Widthdom

Problem

cdidx workspace use <name> matches members by Path.GetFileName(member.Path) and takes the first match. A manifest can contain multiple members with the same leaf directory name, causing the command to select an arbitrary member.

Evidence

  • WorkspaceCommandRunner.Use uses FirstOrDefault over members whose basename matches the requested name.
  • Workspace manifests can describe nested paths such as src/App and tests/App.

Suggested fix

Detect multiple matching members and return a clear ambiguity error listing bounded candidate paths, or support a fully-qualified member key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions