Compute hash of unity configuration for change detection.
(num_chunks: int, sources: list[Path])
| 130 | |
| 131 | |
| 132 | def compute_unity_metadata_hash(num_chunks: int, sources: list[Path]) -> str: |
| 133 | """Compute hash of unity configuration for change detection.""" |
| 134 | config_str = f"{num_chunks}:{len(sources)}:" + ":".join( |
| 135 | str(s) for s in sorted(sources) |
| 136 | ) |
| 137 | return hashlib.sha256(config_str.encode()).hexdigest() |
| 138 | |
| 139 | |
| 140 | def generate_unity_builds( |
no outgoing calls
no test coverage detected