From 6575f2addbed7a25a21c882768caa399b8fdfcae Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 5 Jun 2024 13:51:42 -0500 Subject: [PATCH] Add logic for excluding group workaround dependencies (#155) --- 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 b5f6f99..c1e354b 100644 --- a/test/spell_check.words +++ b/test/spell_check.words @@ -53,4 +53,5 @@ thomas todo tuples unittest +workaround workspaces