From 6adb3e8c727e569aca320cfcee838bb8e95f29ad Mon Sep 17 00:00:00 2001 From: Scott Little Date: Fri, 20 Oct 2023 13:44:20 -0400 Subject: [PATCH] Log members of a circular dependency Builds fail for reasons of a circular dependency loop, but fail to list the members of that loop. This update logs the members of the loop. Closes-bug: 2040003 Signed-off-by: Scott Little Change-Id: Ia6c9707ef0e2a9162fd77bbcdd747c5d69e9d055 --- build-tools/stx/dsc_depend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-tools/stx/dsc_depend.py b/build-tools/stx/dsc_depend.py index 83fbcf6d..43128e4e 100644 --- a/build-tools/stx/dsc_depend.py +++ b/build-tools/stx/dsc_depend.py @@ -719,6 +719,8 @@ class Circular_break(): def __depth_t(self, node, dependencies, circular_chain): # Search the dependency tree. Once a circular dependency detected, raise exception. if node in circular_chain: + for p in circular_chain: + self.logger.error("Circular dependency member: %s." % str(p)) while node is not circular_chain[0]: circular_chain.remove(circular_chain[0]) raise Exception('CIRCULAR DEPENDENCY DETECTED.')