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.
Problem
cdidx workspace use <name>matches members byPath.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.UseusesFirstOrDefaultover members whose basename matches the requested name.src/Appandtests/App.Suggested fix
Detect multiple matching members and return a clear ambiguity error listing bounded candidate paths, or support a fully-qualified member key.