Update hash algorithm in workspace_poe_tasks.py (#6802)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user