From a45f68c301019cde5533e2f4a455549cc0632e10 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 24 Apr 2024 09:07:23 -0500 Subject: [PATCH] Add logic for excluding group workaround dependencies --- colcon_ros/package_identification/ros.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/colcon_ros/package_identification/ros.py b/colcon_ros/package_identification/ros.py index 671db21..7b9cd39 100644 --- a/colcon_ros/package_identification/ros.py +++ b/colcon_ros/package_identification/ros.py @@ -176,7 +176,11 @@ def _get_package(path: str): f"'{path}': {e}") return None - pkg.evaluate_conditions(os.environ) + condition_context = { + **os.environ, + 'DISABLE_GROUPS_WORKAROUND': '1', + } + pkg.evaluate_conditions(condition_context) return pkg