Description
Describe the problem
Arduino libraries may have dependencies on other libraries. These can be specified in the library's metadata, which will cause Arduino CLI to install them along with the library.
🐛 The dependencies of a library are not installed when a new version of the dependent library is installed by arduino-cli lib upgrade
To reproduce
$ arduino-cli version
arduino-cli.exe Version: git-snapshot Commit: 05d14464 Date: 2022-08-30T19:43:20Z
$ arduino-cli lib uninstall MKRWAN
Uninstalling [email protected]...
$ arduino-cli lib install [email protected]
Already installed [email protected]
Already installed [email protected]
Already installed [email protected]
Already installed [email protected]
Already installed [email protected]
Downloading [email protected]...
[email protected] already downloaded
Installing [email protected]...
Installed [email protected]
$ arduino-cli lib deps [email protected]
✓ MKRNB 1.5.1 is already installed.
✓ Arduino_ConnectionHandler 0.3.3 is already installed.
✓ Arduino_DebugUtils 1.3.0 is already installed.
✓ WiFi101 0.16.1 is already installed.
✓ WiFiNINA 1.8.13 is already installed.
✓ MKRGSM 1.5.0 is already installed.
$ arduino-cli lib upgrade
Downloading [email protected]...
[email protected] already downloaded
Installing [email protected]...
Replacing [email protected] with [email protected]...
Installed [email protected]
$ arduino-cli lib deps [email protected]
✓ WiFiNINA 1.8.13 is already installed.
✓ MKRGSM 1.5.0 is already installed.
✓ MKRNB 1.5.1 is already installed.
✕ MKRWAN 1.1.0 must be installed.
✓ Arduino_ConnectionHandler 0.6.6 is already installed.
✓ Arduino_DebugUtils 1.3.0 is already installed.
✓ WiFi101 0.16.1 is already installed.
🐛 The new dependency MKRWAN
(added after the time of the [email protected]
release) was not installed.
Expected behavior
Install dependencies of libraries upgraded by arduino-cli lib upgrade
, just as already happens when upgrading individual libraries (e.g., arduino-cli lib install Arduino_ConnectionHandler
).
Arduino CLI version
Operating system
Windows
Operating system version
Windows 10
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