Commit 78c9c9e
committed
Install each Library Manager sourced library separately
`arduino-cli lib install` fails if one of the libraries in the list has a dependency on another, but an earlier version of the dependency is specified in the list.
For example, the following command doesn't install any libraries and returns exit status 1:
$ arduino-cli lib install Arduino_ConnectionHandler@0.4.8 ArduinoIoTCloud
Arduino_ConnectionHandler@0.4.8 depends on Arduino_DebugUtils@1.1.0
Arduino_ConnectionHandler@0.4.8 depends on WiFi101@0.16.0
Arduino_ConnectionHandler@0.4.8 depends on WiFiNINA@1.7.1
Arduino_ConnectionHandler@0.4.8 depends on MKRGSM@1.5.0
Arduino_ConnectionHandler@0.4.8 depends on MKRNB@1.3.2
Arduino_ConnectionHandler@0.4.8 depends on MKRWAN@1.0.12
Arduino_ConnectionHandler@0.4.8 depends on Arduino_ConnectionHandler@0.4.8
ArduinoIoTCloud depends on Arduino_DebugUtils@1.1.0
ArduinoIoTCloud depends on ArduinoMqttClient@0.1.5
ArduinoIoTCloud depends on ArduinoECCX08@1.3.4
ArduinoIoTCloud depends on WiFiNINA@1.7.1
ArduinoIoTCloud depends on MKRGSM@1.5.0
ArduinoIoTCloud depends on ArduinoIoTCloud@0.11.1
ArduinoIoTCloud depends on RTCZero@1.6.0
ArduinoIoTCloud depends on WiFi101@0.16.0
ArduinoIoTCloud depends on MKRNB@1.3.2
ArduinoIoTCloud depends on MKRWAN@1.0.12
ArduinoIoTCloud depends on Arduino_ConnectionHandler@0.4.9
The library Arduino_ConnectionHandler is required in two different versions: 0.4.9 and 0.4.8
The solution is to install one library at a time (even though `arduino-cli lib install` supports installing multiple libraries at once). This also allows the user to control which version of the library is installed in the end by the order of the list passed via the libraries input.1 parent 8145959 commit 78c9c9e
File tree
2 files changed
+25
-7
lines changed- compilesketches
- tests
2 files changed
+25
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | | - | |
711 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
712 | 718 | | |
713 | 719 | | |
714 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
933 | 945 | | |
934 | 946 | | |
935 | 947 | | |
| |||
0 commit comments