MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / visit

Method visit

misc/python/materialize/mzbuild.py:1707–1717  ·  view source on GitHub ↗
(image: Image, path: list[str] = [])

Source from the content-addressed store, hash-verified

1705 visiting = set()
1706
1707 def visit(image: Image, path: list[str] = []) -> None:
1708 if image.name in resolved:
1709 return
1710 if image.name in visiting:
1711 diagram = " -> ".join(path + [image.name])
1712 raise ValueError(f"circular dependency in mzbuild: {diagram}")
1713
1714 visiting.add(image.name)
1715 for d in sorted(image.depends_on):
1716 visit(self.images[d], path + [image.name])
1717 resolved[image.name] = image
1718
1719 for target_image in sorted(targets, key=lambda image: image.name):
1720 visit(target_image)

Callers

nothing calls this directly

Calls 4

ValueErrorClass · 0.85
visitFunction · 0.85
joinMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected