)]}'
{
  "commit": "a7900ea90f7f2635d95741770b3d10bf55a72894",
  "tree": "76e1497e27ad7aeb113862db17680b58cf2ae6b3",
  "parents": [
    "dafbabbe06f978a046d001f1aa52919eb41dba25"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Thu Nov 19 23:26:59 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 19 23:26:59 2026 +0000"
  },
  "message": "fix(windows): don\u0027t require symlinks for the runtime venv (#4509)\n\nOn Windows, `py_binary` and `py_test` create a venv at runtime by\nsymlinking the interpreter, its `.dll` files and the `site-packages`\nfiles into a temporary directory. Without the privilege to create\nsymlinks, this fails with `WinError 1314`, which is the default for\nusers that can\u0027t enable Developer Mode.\n\nOn Windows, if creating a symlink fails, the bootstrap now uses hard\nlinks for files, junctions for directories, and copies if those aren\u0027t\npossible, e.g. when the temporary directory is on a different volume.\nThe runfiles files are already copies when Bazel can\u0027t create symlinks,\nso they aren\u0027t moved, as that would break the next run that uses the\nsame runfiles tree. Other platforms are unchanged.\n\nWindows refuses to delete read-only files, such as hard links to Bazel\noutputs, and the read-only attribute is shared by all the hard links of\na file, so the venv\u0027s read-only files are deleted with\n`FILE_DISPOSITION_FLAG_IGNORE_READONLY_ATTRIBUTE` instead of clearing\nthe attribute. This needs Windows 10 1809 or Windows Server 2019, so\nolder versions still require the privilege to create symlinks.\n\nThe `RULES_PYTHON_TESTING_DISABLE_SYMLINKS` environment variable forces\nthe fallback on Windows, which a new test uses, and a new CI job uses\nto build and test `examples/bzlmod` with `--nowindows_enable_symlinks`.\n\nFixes #3792\n\n---------\n\nCo-authored-by: Richard Levasseur \u003crichardlev@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f7bdd96ed4b5212d554e1d456f4cb1530f45b1e",
      "old_mode": 33188,
      "old_path": ".bazelci/presubmit.yml",
      "new_id": "c5ccd9b69b4bbf4adc9a44bb5c2314299b24f002",
      "new_mode": 33188,
      "new_path": ".bazelci/presubmit.yml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5a7dfa3795193640eef93bb0f81fe4a97e604002",
      "new_mode": 33188,
      "new_path": "news/3792.fixed.md"
    },
    {
      "type": "modify",
      "old_id": "8d95f9d419714d27f0aea4909bcf3f4901130f6d",
      "old_mode": 33188,
      "old_path": "python/private/python_bootstrap_template.txt",
      "new_id": "72bf62ddadcaad53dd5dcecabf9b2750024e3781",
      "new_mode": 33188,
      "new_path": "python/private/python_bootstrap_template.txt"
    },
    {
      "type": "modify",
      "old_id": "eda0e73161562f52af2f44592a19b2bd413741da",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/BUILD.bazel",
      "new_id": "f2cd3a14c4efac8e483e016b46ff01eeb956ae97",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "7ebe0c047eb801d88568c597df58af1dd3736f42",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/bin.py",
      "new_id": "5913d924130ed3ed414437ea36810172ac4d7ba8",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/bin.py"
    },
    {
      "type": "modify",
      "old_id": "fc59b2301700d5eca31d4e9c282fd581e55981ba",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/cached_venv_dangling_symlink_test.py",
      "new_id": "363736d0a0dcd349e613d191b0d8406ffaf79a0a",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/cached_venv_dangling_symlink_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fc8fea90027f04dc8fede61d328f275a7d063036",
      "new_mode": 33261,
      "new_path": "tests/bootstrap_impls/run_binary_without_symlinks_test.sh"
    }
  ]
}
