From 53a4fbc30a92e07fcdd401c01571b9a4293b0d37 Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Mon, 29 Jun 2026 16:33:50 +0100 Subject: [PATCH] Update hash algorithm in workspace_poe_tasks.py Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- python/scripts/workspace_poe_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",