-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Consider raising LP048 to error instead of warning #336
Comments
Just for reference, the workaround when using the Arduino CLI is:
(But then one must install the other valid dependencies manually) |
ConsiderationsThere are some factors to consider related to enforcement of LP048: Dependent libraries might be submitted in parallelIf LP048 was made a requirement for library registry submissions, the library maintainer would need to submit these separately, and they would need to be accepted in the correct order, with the correct timing between submissions to allow the previous submission to propagate into http://downloads.arduino.cc/libraries/library_index.json So this would make the registry less friendly to the library maintainers, and more work for the registry maintainers. LP048 is not run by
|
LP048 checks whether all libraries mentioned in the
depends
field of library.properties exist in the Library Manager, however it is a warning and not an error.The issue is that
arduino-cli lib install
will refuse to install any library whose dependencies are not in the Library Manager:I saw quite a few libraries mentioning built-in classes such as SoftwareSerial or EEPROM, which are not known to the Library Manager. When trying to install such libraries from the IDE 2.0, it will just refuse to install them without providing any error.
The easiest way to fix this asymmetry would probably be to raise this check to error level. Other fixes could be to implement ways to bypass this check at library installation time in CLI and IDE.
What do you think @per1234?
The text was updated successfully, but these errors were encountered: