Open dhalbert opened 1 year ago
This is unfortunately necessary. There's currently an apparent disparity in the version specification syntax between arduino-cli
and arduino-lint
. Passing an arduino-lint
check is needed for the library to be published into the Arduino Library Manager. So that syntax is being used for that reason. As a result, arduino-cli
checks will fail.
See also: https://github.com/adafruit/Adafruit_LvGL_Glue/pull/18
@caternuson do we want to manually install the library then... or change ci-arduino's pass/fail critereon?
I think we're stuck with the current syntax in library.properties
for the sake of Arduino Library Manager. So even if the library were manually installed, arduino-cli
would probably still balk trying to parse the version syntax.
Crazy hack idea - how about adding a step to this repo's CI, before the pre-install
step, that does something like a sed
command to directly modify library.properties
to change the syntax to what arduino-cli
wants? Like a basic search/replace.
Ex:
sed -i 's/lvgl (=8.2.0)/lvgl@8.2.0/' library.properties
but with whatever $(REPO_FOLDER)
prefixes might also be needed
@dhalbert Was the ESP IDF link just another example of a similar issue? Or is there more tie in from that issue thread that applies here?
See this https://github.com/espressif/esp-idf/issues/8495 and maybe newer stuff