Skip to content

Error installing Git Library with specific git sha hash #2860

Closed
@jgartrel

Description

@jgartrel

Describe the problem

It looks like the changes in the latest version of Arduino-cli (v1.2.0) have broken the ability to install libraries from as specific git hash. This same operation works fine with v1.1.1 This may be related to the fix for #2825 and #2833.

To reproduce

Example below:

$ /usr/local/bin/arduino-cli lib install --git-url https://github.com/jgartrel/KXTJ3-1057.git#ee0d78f622518a530c3f7271af857c11c170bd82
--git-url and --zip-path flags allow installing untrusted files, use it at your own risk.
Enumerating objects: 63, done.
Counting objects: 100% (26/26), done.
Compressing objects: 100% (10/10), done.
Total 63 (delta 18), reused 16 (delta 16), pack-reused 37 (from 1)
Error installing Git Library: Library install failed: reference not found

Expected behavior

I expect that the library would be successfully installed (as in v1.1.1):

Installing KXTJ3-1057 using --git-url
--git-url and --zip-path flags allow installing untrusted files, use it at your own risk.
Enumerating objects: 63, done.
Counting objects: 100% (26/26), done.
Compressing objects: 100% (10/10), done.
Total 63 (delta 18), reused 16 (delta 16), pack-reused 37 (from 1)
Library installed

Arduino CLI version

1.2.0

Operating system

macOS

Operating system version

Sequoia 15.1.1

Additional context

No response

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

conclusion: resolvedIssue was resolvedtopic: codeRelated to content of the project itselftopic: package-managementRelated to the packaging and managing of the platform/librariestype: imperfectionPerceived defect in any part of project

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions