mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Do not warn about unknown packages if they are built-in libraries
This commit is contained in:
@ -125,7 +125,10 @@ class PackageManagerInstallMixin(object):
|
||||
if print_header:
|
||||
self.log.info("Resolving dependencies...")
|
||||
for dependency in dependencies:
|
||||
if not self._install_dependency(dependency):
|
||||
try:
|
||||
self._install_dependency(dependency)
|
||||
except UnknownPackageError:
|
||||
if dependency.get("owner"):
|
||||
self.log.warning(
|
||||
click.style(
|
||||
"Warning! Could not install dependency %s for package '%s'"
|
||||
@ -145,11 +148,7 @@ class PackageManagerInstallMixin(object):
|
||||
for key, value in dependency.items()
|
||||
if key in ("authors", "platforms", "frameworks")
|
||||
}
|
||||
try:
|
||||
return self._install(spec, search_filters=search_filters or None)
|
||||
except UnknownPackageError:
|
||||
pass
|
||||
return None
|
||||
|
||||
def install_from_url(self, url, spec, checksum=None):
|
||||
spec = self.ensure_spec(spec)
|
||||
|
@ -56,7 +56,6 @@ def test_global_packages(
|
||||
],
|
||||
)
|
||||
validate_cliresult(result)
|
||||
assert "Warning! Could not install dependency {'name': 'Hash'" in result.output
|
||||
assert pkgs_to_names(LibraryPackageManager().get_installed()) == [
|
||||
"ArduinoJson",
|
||||
"AsyncMqttClient",
|
||||
|
Reference in New Issue
Block a user