I had met a compilation issue on my Arduino library (Dimmable Light for Arduino) because the LDF process was including all the dependencies found in the library, even if the
library.json contains the dependencies for a specific platform. I have investigated and I had found the Compatibility Mode option. By setting it to
strict the problem was solved. Here the Github issue that contains the MVCE.
However, I was wondering: why this is not the default behavior? I expected that the options written in
library.json are considered by PIO building process by default.
Is there something I’m missing? Or should I simply recommend setting strict mode when using this library?