From 537558d4104d147d0a8f47c7e82f34d136995cc0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 29 Jul 2022 20:03:14 +0300 Subject: [PATCH] Do not resolve project dependencies on for the "cleanall" target // Resolve #4344 --- HISTORY.rst | 1 + platformio/run/processor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 821dbc4e..971d34c3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -18,6 +18,7 @@ PlatformIO Core 6 * Improved device port finder when using dual channel UART converter (`issue #4367 `_) * Improved project dependency resolving when using the `pio project init --ide `__ command +* Do not resolve project dependencies on for the ``cleanall`` target (`issue #4344 `_) * Fixed an issue when escaping macros/defines for IDE integration (`issue #4360 `_) 6.1.3 (2022-07-18) diff --git a/platformio/run/processor.py b/platformio/run/processor.py index 00a96f02..053478ac 100644 --- a/platformio/run/processor.py +++ b/platformio/run/processor.py @@ -79,7 +79,7 @@ class EnvironmentProcessor: if "monitor" in build_targets: build_targets.remove("monitor") - if "clean" not in build_targets: + if not set(["clean", "cleanall"]) & set(build_targets): install_project_env_dependencies( self.name, {