-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cache issues #41
Comments
Yes, this is an unfortunate side-effect when a PPX depends on other files than the input source file itself. Changing This is similar to #13. |
Does it mean the ppx isn't executed if only another piece of code is changed? |
That's correct. A ppx is executed when the compiler compiles a file, which only happens when either that file or any of its dependencies - i.e. other .ml/.re files - have changed. This basically means that ppx's never should read other files than their input. What you're seeing here is what happens when you break that rule :) |
Reproduction:
In general, you see that the graphql_schema.json is cached in the ppx. Only a query change will trigger the new schema
The text was updated successfully, but these errors were encountered: