arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.33k stars 375 forks source link

Fetch dependencies when installing from .zip #2547

Open qfisch opened 7 months ago

qfisch commented 7 months ago

Describe the request

It would be really great if the following command: arduino-cli lib install --zip-path ./myzip-lib.zip would also fetch the dependencies listed in the library.properties.

Describe the current behavior

Currently the dependencies are only fetched when installing packets from the library manager:
( arduino-cli lib install my-lib-name )

Arduino CLI version

nightly-20240221

Operating system

Linux

Operating system version

Ubuntu 22.04 LTS

Additional context

That would be really useful for CI/CD usage. In our case we want to install the lib and all the dependencies in order to compile the examples. We currently install manually the dependencies but it could lead to discrepancies between the CI script and the library.properties...

Issue checklist