-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Project is being captured as a dependency even though it is not #125
Comments
Yikes, yeah thats valid. I'd prefer something like this to make sure it doesn't break across OS's
@pemsbr Are you interested in putting a PR in for this? I can assign it to you if so 😄 |
Sure, I can pick it up 👍 |
I don't seem to have permissions to push my branch with the fix and create the PR |
You'll need to fork it and push your branch there to create the PR, this gist seems to document that flow well https://gist.github.com/Chaser324/ce0505fbed06b947d962 There's a discussion thread that details how to test your changes locally somewhere around here. |
fix(core): projects w/ similar names should not be picked up as affected by change to one project. Closes #125 Signed-off-by: AgentEnder <craigorycoppola@gmail.com> Co-authored-by: Pedro Rodrigues <4513618+pemsbr@users.noreply.github.com>
🎉 This issue has been resolved in version 1.4.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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-foo
as a project reference intarget-project
Run
nx dep-graph
Not only is
dep-project-foo
a dependency oftarget-project
but alsodep-project
Expected behavior
target-project
should only have one dependency:dep-project-foo
Additional context
I think the problem is here:
nx-dotnet/packages/utils/src/lib/utility-functions/workspace.ts
Line 74 in 3ca8a58
Comparing against
`${path}\\`
appears to fix the issue.The text was updated successfully, but these errors were encountered: