Lint: changing tags of a library doesn't invalidate the cache of libraries that depend on it #9252
Labels
blocked: retry with latest
Retry with latest release or head.
outdated
scope: linter
Issues related to Eslint support in Nx
type: bug
Current Behavior
I have
lib1
tagged withtag1
, andlib2
tagged withtag2
.The eslint rule for
@nrwl/nx/enforce-module-boundaries
looks like this:Inside
lib1
I import a file fromlib2
, and run the lint. The lint passes because my tag rules allow such a dependency.Now, I remove
tag2
fromlib2
.I run lint again, but the linting cache gets invalidated only for
lib2
, which is the lib I modified, and not forlib1
, that depends on it: hence, lintinglib1
doesn't fail, as I was expecting.I clear the cache, run lint again, now it correctly fails for
lib1
.Expected Behavior
Lint should fail immediately, without need of clearing the cache.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: