INNER CODE UNIT · Python

warn_about_collisions

MinaProtocol/mina · maintenance/deps/main.py:279

def warn_about_collisions(graph: DuneGraph) -> None:
    """Name clashes are resolved silently; say so rather than hide it."""
    if not graph.collisions:
        return
    print(
        f"warning: {len(graph.collisions)} library name(s) are declared by more than one "
        "stanza; dependencies on them resolve to the first by directory order:",
        file=sys.stderr,
    )
    for collision in graph.collisions:
        losers = ", ".join(collision.losers)
        print(f"  {collision.name}: {collision.winner} (over {losers})", file=sys.stderr)


def _section(title: str) -> None:
    print(f"\n{title}")
    print("-" * len(title))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…