diff --git a/src/python/pants/backend/python/typecheck/mypy/rules.py b/src/python/pants/backend/python/typecheck/mypy/rules.py index c2108360140..0e35929cfc3 100644 --- a/src/python/pants/backend/python/typecheck/mypy/rules.py +++ b/src/python/pants/backend/python/typecheck/mypy/rules.py @@ -294,6 +294,7 @@ async def mypy_typecheck_partition( SANDBOX_CACHE_DIR="{run_cache_dir}/{py_version}" SANDBOX_CACHE_DB="$SANDBOX_CACHE_DIR/cache.db" + {mkdir.path} -p "$NAMED_CACHE_DIR" > /dev/null 2>&1 {mkdir.path} -p "$SANDBOX_CACHE_DIR" > /dev/null 2>&1 {cp.path} "$NAMED_CACHE_DB" "$SANDBOX_CACHE_DB" > /dev/null 2>&1