Skip to content

Error installing Git Library with specific git branch #2825

Closed
@marvelous

Description

@marvelous

Describe the problem

Using the --git-url option with a specific branch gives error Error installing Git Library: Library install failed: reference not found

To reproduce

arduino-cli.yaml config file:

library:
  enable_unsafe_install: true

Failing command:

arduino-cli --config-file arduino-cli.yaml lib install --git-url 'https://github.com/mcauser/Adafruit_SSD1306.git#esp8266-64x48'

Expected behavior

Successful installation of the library branch.

Arduino CLI version

arduino-cli Version: nightly-20250117 Commit: f47399b Date: 2025-01-17T01:33:56Z

Operating system

Linux

Operating system version

Fedora 41

Additional context

The default branch does work though:

arduino-cli --config-file arduino-cli.yaml lib install --git-url 'https://github.com/mcauser/Adafruit_SSD1306.git#master'

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions