-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds-triageThis issue has yet to be looked over by a core team memberThis issue has yet to be looked over by a core team memberoutdated
Description
Describe the bug
A project is wrongly captured as a dependency when it starts with the same name as a project that is actually a dependency.
To Reproduce
Steps to reproduce the behavior:
-
Create 3 projects (
dep-project,dep-project-foo,target-project)
libs/
├─ target-project/TargetProject.csproj
├─ dep-project-foo/DepProject.Foo.csproj
├─ dep-project/DepProject.csproj -
Add
dep-project-fooas a project reference intarget-project -
Run
nx dep-graph -
Not only is
dep-project-fooa dependency oftarget-projectbut alsodep-project
Expected behavior
target-project should only have one dependency: dep-project-foo
Additional context
I think the problem is here:
| if (workspaceFilePath.startsWith(path)) { |
Comparing against `${path}\\` appears to fix the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageThis issue has yet to be looked over by a core team memberThis issue has yet to be looked over by a core team memberoutdated