)]}'
{
  "commit": "0b52e5d616576211ca4bf1163fe72a6705d2e58c",
  "tree": "e381d1fb84a32e134f37868dae69ab022ddbd946",
  "parents": [
    "77b458de5a0f76ba7a22a8ac9e60526df5c18e39"
  ],
  "author": {
    "name": "sean0407",
    "email": "sean0407@gmail.com",
    "time": "Sun Oct 25 22:52:32 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Oct 25 22:52:32 2026 +0000"
  },
  "message": "fix: recover cached venvs from dangling package symlinks (#4318)\n\n## Summary\n\nA persistent venv can retain a dangling package-directory symlink after\nthe Python runtime changes. When initialization then creates a runtime\nfile link beneath that path, `os.makedirs(..., exist_ok\u003dTrue)` raises\n`FileExistsError` instead of recovering.\n\nRemove the parent symlink only when it is confirmed dangling, then\ncreate the directory and the current runtime file link. Fixes #4269.\n\n## Checks\n\n- In a credential-isolated sandbox, the issue reproduction raised\n`FileExistsError` before the fix.\n- In the same sandbox,\n`cached_venv_replaces_dangling_package_symlink_test` passed (1 test),\nverifying that the stale package link becomes a directory and the child\nlink resolves to the current runfiles file.\n- `git diff --check` passed.\n\n---------\n\nCo-authored-by: Sean \u003csean0407@users.noreply.github.com\u003e\nCo-authored-by: Ignas Anikevicius \u003c240938+aignas@users.noreply.github.com\u003e\nCo-authored-by: Sean \u003c22557931+sean0407@users.noreply.github.com\u003e\nCo-authored-by: Sean \u003csean@SeandeMac-mini-2.local\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d3f26bbdc0e135b4cd63806f747610337290210c",
      "old_mode": 33188,
      "old_path": "python/private/python_bootstrap_template.txt",
      "new_id": "206c473a6a2a2c0056f94b78d45864c409924b8c",
      "new_mode": 33188,
      "new_path": "python/private/python_bootstrap_template.txt"
    },
    {
      "type": "modify",
      "old_id": "8417ec5b9fc3878d3456cd0eb02852903f97696c",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/BUILD.bazel",
      "new_id": "f8f3b6838dcdf5ebffaf684e2de5e54d41b697f1",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a7f681cc3ee08c373d85ef55480b11ecdd8a87ea",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/cached_venv_dangling_symlink_test.py"
    }
  ]
}
