-
-
Notifications
You must be signed in to change notification settings - Fork 398
Using --git-url fails to install library due to repository and header name mismatch #1306
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
Comments
The same happened to me when trying to install |
It's not a matter of making it configurable. It's a matter of fixing the bug in Arduino CLI. There is no requirement for the header file name to match the library repository name/folder name, so the Arduino CLI should install this library with no problem. |
Can I help somehow? I'm happy to provide a PR, I just don't know from what angle to approach this. Should the library just be copied to the libraries folder or are there more steps involved? Can this check just be removed and everything will work? |
@chmanie help is always more than welcome and encouraged. We probably can just check if the For reference this check has been introduced with #1234, probably I was way to strict to expect an header with the same name of the library. @per1234 @ubidefeo @cmaglie can any of you confirm that's enough to check for a |
It should support installation of 1.0/"legacy" format libraries that don't have a For those libraries, a header file must be present in the library's root folder. |
@per1234 Does the header file have to follow any naming conventions? Or should it just be the first (or only?) header file that is found? |
It must contain at least one header file in the root folder, the naming is not important. To make the verification step work correctly you must first verify if the |
Hi, I am also interested in this issue. This is for sure a very critical bug/issue, since it blocks the installation of many libraries. Regards. |
Bug Report
Current behavior
arduino-cli lib install --git-url https://github.com/ThingPulse/esp8266-oled-ssd1306
When running the above command, I receive an error:
Error installing Git Library: library is not valid: missing header file "esp8266-oled-ssd1306.h"
This particular library doesn't have a header file named that. What is interesting though is if I instead install the library by the name, then it installs exactly the same repository with no issues. Here is that command:
arduino-cli lib install "ESP8266 and ESP32 Oled Driver for SSD1306 displays"
I verified it was the exact same library by using
arduino-cli lib search
Expected behavior
When pulling using Git repositories, it should install the libraries the same way it does when specifying by name.
Environment
arduino-cli version
): 0.18.3Additional context
In previous versions of the CLI, we could specify the Git repository URLs with no problems. We specify quite a few libraries via the CLI in a Travis build. About half of them would need to be replaced with the name as found via
arduino-cli lib search
and there are a few that don't even show up in the library search, so the only way to retrieve them would be via the Git repository, which doesn't work because the name doesn't match.The text was updated successfully, but these errors were encountered: