Skip to content

Using --git-url fails to install library due to repository and header name mismatch #1306

Closed
@hawk4031

Description

@hawk4031

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

  • CLI version (output of arduino-cli version): 0.18.3
  • OS and platform: Windows for testing, Linux for Travis CI

Additional 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions