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 <scott.little@windriver.com>
Change-Id: Ia6c9707ef0e2a9162fd77bbcdd747c5d69e9d055
This commit is contained in:
Scott Little 2023-10-20 13:44:20 -04:00
parent b5a9cc605f
commit 6adb3e8c72
1 changed files with 2 additions and 0 deletions

View File

@ -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.')