Skip to content
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

Error installing Git Library with specific git sha hash #2860

Open
3 tasks done
jgartrel opened this issue Mar 10, 2025 · 0 comments
Open
3 tasks done

Error installing Git Library with specific git sha hash #2860

jgartrel opened this issue Mar 10, 2025 · 0 comments
Labels
topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries type: imperfection Perceived defect in any part of project
Milestone

Comments

@jgartrel
Copy link

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
@jgartrel jgartrel added the type: imperfection Perceived defect in any part of project label Mar 10, 2025
@per1234 per1234 added topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries labels Mar 11, 2025
@alessio-perugini alessio-perugini added this to the v1.2.1 milestone Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants