I have a project that includes two KSP processors. One KSP processor contributes code that contains annotations that are used by the second KSP processor, OSS project Zodable (
https://github.com/guimauvedigital/zodable/tree/main/zodable-ksp-processor).
In debugging this, I see that the Zodable processor is called twice -- once with the original set of annotated classes, then again with the new generated set of annotated classes from the first processor.
The Zodable processor
writes some stuff to disk, but it currently assumes it is only called once, so the second execution of it borks the output.
What would the right way to fix this in the Zodable processor be? I thought about appending to those outputs but that doesn't work for incremental builds where the outputs already exist.