Closed DerStimmler closed 1 year ago
Hey, yeah this plugin's implementation was written before it was added, and the implementation here hasn't been updated.
@DerStimmler do you want to submit a PR to fix this?
@AgentEnder Sure. I'll have a look at it as soon as I find time.
@DerStimmler do you still want this issue? I may be able to pick it up soon if not.
I already worked on it, but struggled with proper testing. Will give it another shot this week.
@AgentEnder I still have problems to test the whole check-module-boundaries feature, because it searches for the .csproj
files to read the dependencies of a project. So it's a bit tricky to mock.
If you have any idea how we could implement this I'll add some tests to not only test the notDependOnLibsWithTags
configuration, but also onlyDependOnLibsWithTags
.
I think the general implementation to fix this issue should be done.
Could you please have a quick look over the PR? Because I'm not sure wether it's working correctly without the tests.
You can mock out fast glob in tests, that's probably the best way. I'll lookover the PR, and may push up an example test
Actually, here's an example if you want to mock that out: https://github.com/nrwl/nx/blob/master/packages/nx/src/config/workspaces.spec.ts
Thanks for the example. I added some tests for onlyDependOnLibsWithTags
and notDependOnLibsWithTags
.
:tada: This issue has been resolved in version 1.19.0 :tada:
The release is available on:
v1.19.0
Your semantic-release bot :package::rocket:
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 Currently it seems that the
notDependOnLibsWithTags
configuration for the enforce-module-boundaries eslint rule doesn't work with nx-dotnet.This feature was added in this PR https://github.com/nrwl/nx/pull/8633.
To Reproduce Add the
notDependOnLibsWithTags
to the enforce-module-boundaries eslint rules. Add the corresponding tags to theproject.json
of your dotnet project.Expected behavior The boundaries should be checked like usual with the
onlyDependOnLibsWithTags
configuration. Just inverted.Screenshots
Environment: