#!/usr/bin/env python3 """Neutral NexusCRM connectors module identity resolution.""" from __future__ import annotations from pathlib import Path from common import resolve_go_module_origin_identity CONNECTORS_MODULE_PATH = "github.com/pingcap-inc/nexuscrm-connectors" CONNECTORS_ORIGIN_URL = "https://github.com/pingcap-inc/nexuscrm-connectors" CONNECTORS_LAUNCH_MODULE = Path("backend") / "distributions" def resolve_connectors_module_identity( upstream_root: Path, envv: dict[str, str], ) -> dict[str, str]: return resolve_go_module_origin_identity( module_root=upstream_root / CONNECTORS_LAUNCH_MODULE, module_path=CONNECTORS_MODULE_PATH, expected_origin_url=CONNECTORS_ORIGIN_URL, envv=envv, )