From c13387333c39eee5273e05b49bc94f0d310d55b6 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 +++++- test/spell_check.words | 1 + 2 files changed, 6 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 diff --git a/test/spell_check.words b/test/spell_check.words index d20de34..b291e6e 100644 --- a/test/spell_check.words +++ b/test/spell_check.words @@ -52,4 +52,5 @@ thomas todo tuples unittest +workaround workspaces