cache miss because of npmDependencies on nx reset
Current Behavior
nx lint has negative cache miss if the npm changed it seems nx cache add the new dependencies incorrectly in the cache if the Daemon Server is running and you must reset it everytime you change branch or dependency
Expected Behavior
nx to have deterministic behavior, same source should always give cache hit
GitHub Repo
No response
Steps to Reproduce
- in any existing repo run
npm i jsonc-eslint-parserand use that parser in your eslint configuration - run
nx lint - run
nx reset - run
nx lint
Nx Report
Node : 20.11.0
OS : win32-x64
npm : 10.4.0
nx : 18.0.4
@nx/js : 18.0.4
@nx/jest : 18.0.4
@nx/linter : 18.0.4
@nx/eslint : 18.0.4
@nx/workspace : 18.0.4
@nx/angular : 18.0.4
@nx/cypress : 18.0.4
@nx/devkit : 18.0.4
@nx/eslint-plugin : 18.0.4
@nx/nest : 18.0.4
@nx/node : 18.0.4
@nrwl/tao : 18.0.4
@nx/web : 18.0.4
@nx/webpack : 18.0.4
typescript : 5.3.3
---------------------------------------
Community plugins:
ng-mocks : 14.12.1
Failure Logs
No response
Package Manager Version
No response
Operating System
- [ ] macOS
- [ ] Linux
- [x] Windows
- [ ] Other (Please specify)
Additional Information
Hey! Thanks for the report. I haven't been able to get to this issue yet but it's on my list and I'll try to reproduce & fix it ASAP :)
this has been fixed by https://github.com/nrwl/nx/pull/28024
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.