From 788351a0cd2559e6b1cd917de7b7b3650408cec2 Mon Sep 17 00:00:00 2001 From: valeros Date: Mon, 13 Apr 2020 16:41:03 +0300 Subject: [PATCH] Fixed an incorrect node path used for pattern matching when processing middleware nodes --- HISTORY.rst | 1 + platformio/builder/tools/platformio.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index acaa6ef3..a7664799 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,6 +12,7 @@ PlatformIO Core 4 * Fixed PIO Unit Testing for Zephyr RTOS * Fixed UnicodeDecodeError on Windows when network drive (NAS) is used (`issue #3417 `_) * Fixed an issue when saving libraries in new project results in error "No option 'lib_deps' in section" (`issue #3442 `_) +* Fixed an incorrect node path used for pattern matching when processing middleware nodes 4.3.1 (2020-03-20) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 1132f447..c0cc11de 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -285,7 +285,7 @@ def CollectBuildFiles( for callback, pattern in env.get("__PIO_BUILD_MIDDLEWARES", []): tmp = [] for node in sources: - if pattern and not fnmatch.fnmatch(node.get_path(), pattern): + if pattern and not fnmatch.fnmatch(node.srcnode().get_path(), pattern): tmp.append(node) continue n = callback(node)