Skip to content

Conversation

@dido18
Copy link
Contributor

@dido18 dido18 commented Nov 6, 2025

Motivation

Fix #45.

If a library is installed on the board, but it is not present in the local library_index, the installation fails because it is not found.

This can happen when a library is added to the public library registry, but the local index on the board is not updated.

The manual solution is to launch the command arduino-cli lib update-index on the board.

Change description

  • When a library is added, if the local library index has expired, the local library index is updated by running arduino-cli lib update-index
  • The local library-index expires in 10 minutes

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@dido18 dido18 marked this pull request as ready for review November 6, 2025 15:58
@dido18 dido18 requested a review from lucarin91 November 7, 2025 15:48
dido18 and others added 2 commits November 7, 2025 17:16
Co-authored-by: Luca Rinaldi <l.rinaldi@arduino.cc>
Co-authored-by: Luca Rinaldi <l.rinaldi@arduino.cc>
@dido18 dido18 requested a review from lucarin91 November 7, 2025 16:16
@dido18 dido18 merged commit 5a33829 into main Nov 7, 2025
6 checks passed
@dido18 dido18 deleted the fix-add-library branch November 7, 2025 16:30
@per1234 per1234 added the bug Something isn't working label Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The installation of a library fails because thelibrary- index is not update

4 participants