lib install --no-overwrite
fails when dependency version constraints would allow installation to be done without an "overwrite"
#1799
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
The
--no-overwrite
flag (#1793) preventsarduino-cli lib install
from installing a library if this would result in a change to any existing library installation.In addition to the target library, this applies to any dependencies of the library which would be installed along with it.
Library dependencies are defined by the
depends
field of thelibrary.properties
metadata file. This field supports the use of version constraints, which can be used to specify a dependency on a specific version or version range rather than the default behavior of installing the latest version of the dependency.🐛 The
arduino-cli lib install --no-overwrite
command fails when no change to existing installations would have resulted from installation of the library due to its dependency version constraints.To reproduce
The library [email protected] has the following
depends
field:🐛 In the demo above, installation of [email protected] need not have resulted in any changes to the existing library installations because the installed version of the "Bounce2" library dependency matched the version constraint specified for the dependency. Yet the installation failed anyway.
Expected behavior
In the demo above:
--no-overwrite
flag was used in the command)Arduino CLI version
0.25.0-rc1 Commit: 63b53c0
Operating system
Windows
Operating system version
Windows 10
Additional context
Previously discussed at #1793 (review)
Issue checklist
The text was updated successfully, but these errors were encountered: