runtime: resolve staged local-dir path to avoid symlink rejection on macOS (#857)

This commit is contained in:
Utku Tugrul
2026-07-25 05:45:31 -07:00
committed by GitHub
parent 57304b0084
commit d4f4697533
2 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ def stage_symlink_safe_dir(src_root: Path) -> tuple[Path, Path | None]:
if not tree_has_symlink(root):
return root, None
staged = Path(tempfile.mkdtemp(prefix=_STAGING_PREFIX))
staged = Path(tempfile.mkdtemp(prefix=_STAGING_PREFIX)).resolve()
try:
_stage_dir(root, staged, root, frozenset({root}))
except OSError: