forked from arduino/arduino-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[breaking] Fixed detection of double-install using
lib install
with…
… `--git-url` or `--zip-path` (arduino#1983) * Remove useless logging The errors are already reported upstream via returned `err` value * librariesmanager.InstallPrerequisiteCheck signature change It now accepts library name and version as single arguments since we are going to use this function also for libraries not present in the index. * Added integration test * Fixed `lib install --git-url` pre-install checks Now it performs all the needed checks to avoid multiple installations. * Added test for double install with -.zip-path flag * Fixed `lib install --zip-path` pre-install checks Now it performs all the needed checks to avoid multiple installations * Simplified loop in LibraryInstall function * Factored some of the checks in LibrariesManager.InstallPrerequisiteCheck They were duplicated and spread around all the library install functions. * Refactored LibrariesManager.getLibrariesDir function This helped to find out 2 places where the `installDir` was unnecessary. * Factored all duplicated code for importing a library from a directory * Updated docs * Fixed integration test The installation folder is now taken from the `name` field in `library.properties`. * Update docs/UPGRADING.md Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com> Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
230 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.