Skip to content
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

Global sync generator gets taken from cache even after changes #29526

Open
1 of 4 tasks
JesseZomer opened this issue Jan 6, 2025 · 0 comments
Open
1 of 4 tasks

Global sync generator gets taken from cache even after changes #29526

JesseZomer opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
scope: core core nx functionality type: bug

Comments

@JesseZomer
Copy link

Current Behavior

I have a custom generator that's part of my plugin that's set to be a global sync generator. However after the first nx sync changes won't get picked up even though there are changes

Expected Behavior

I expect subsequent runs of nx sync to use the latest state of the generator.

GitHub Repo

https://github.com/JesseZomer/nx-sync-generator-caching-bug

Steps to Reproduce

  1. run nx sync
  2. open .nx/workspace-data/d/daemon.log
  3. see the log "THIS IS A TEST"
  4. comment line 15 in my-generator.ts and uncomment line 17 in my-generator.ts
  5. run nx sync
  6. see the same "THIS IS A TEST" line in the log

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.0

nx (global)            : 20.0.11
nx                     : 20.3.0
@nx/js                 : 20.3.0
@nx/jest               : 20.3.0
@nx/eslint             : 20.3.0
@nx/workspace          : 20.3.0
@nx/angular            : 20.3.0
@nx/devkit             : 20.3.0
@nx/eslint-plugin      : 20.3.0
@nx/module-federation  : 20.3.0
@nx/plugin             : 20.3.0
@nx/web                : 20.3.0
@nx/webpack            : 20.3.0
typescript             : 5.6.3
---------------------------------------
Community plugins:
angular-eslint : 19.0.2
---------------------------------------
Local workspace plugins:
         @sync-caching-bug/my-plugin

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@leosvelperez leosvelperez added the scope: core core nx functionality label Jan 7, 2025
@leosvelperez leosvelperez self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: core core nx functionality type: bug
Projects
None yet
Development

No branches or pull requests

2 participants