diff --git a/python/scripts/workspace_poe_tasks.py b/python/scripts/workspace_poe_tasks.py index 445c7daf41c..3b3b5a33226 100644 --- a/python/scripts/workspace_poe_tasks.py +++ b/python/scripts/workspace_poe_tasks.py @@ -358,7 +358,7 @@ def _mypy_command(paths: list[str], *, samples: bool) -> list[str]: # single shared ``.mypy_cache`` in the working directory; concurrent writes corrupt it # and mypy aborts with ``INTERNAL ERROR``. Give each invocation an isolated cache dir # keyed by its target paths so incremental caching still works per package without races. - cache_key = hashlib.sha1("\0".join(sorted(paths)).encode()).hexdigest()[:16] + cache_key = hashlib.sha256("\0".join(sorted(paths)).encode()).hexdigest()[:16] cache_dir = Path(".mypy_cache") / ("samples" if samples else "tests") / cache_key command = [ "uv",