Update hash algorithm in workspace_poe_tasks.py (#6802)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
SergeyMenshykh
2026-06-29 20:39:47 +01:00
committed by GitHub
parent 7e5ba70884
commit 07ddabbef7
+1 -1
View File
@@ -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",