)]}'
{
  "commit": "ecad092ffa97ac236fb9a6b33ff7f5af4af80eb6",
  "tree": "1c040b7ea16e27418df28a0842206dadc126f99e",
  "parents": [
    "990a0538e796f86dcb9a86e0276b7fdf1bf44c18"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "rlevasseur@google.com",
    "time": "Fri Jul 19 09:01:02 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Jul 19 16:01:02 2024 +0000"
  },
  "message": "feat: inherit PYTHONSAFEPATH env var from outer process (#2076)\n\nBy default, PYTHONSAFEPATH is enabled to help prevent imports being\nfound where they\nshouldn\u0027t be. However, this behavior can\u0027t be disabled, which makes it\nharder to use\na py_binary when the non-safe path behavior is explicitly desired.\n\nTo fix, the bootstrap now respects the caller environment\u0027s\nPYTHONSAFEPATH environment variable, if set. This allows the callers to\nset `PYTHONSAFEPATH\u003d` (empty string) to\noverride the default behavior that enables it.\n\nFixes https://github.com/bazelbuild/rules_python/issues/2060",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "560c04ea8a7783e77c1770f7cdadd9cbf310fcea",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "9ccff79aa7ea15997269a98f14e17296d13ef1b1",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "46e33b48378850da2e02d193779be1b33f3f4bdc",
      "old_mode": 33188,
      "old_path": "python/private/stage1_bootstrap_template.sh",
      "new_id": "895793b41ff787d373452df709e784bbe77ccef2",
      "new_mode": 33188,
      "new_path": "python/private/stage1_bootstrap_template.sh"
    },
    {
      "type": "modify",
      "old_id": "62d73ac88fa88681f871333fed4b020eca035f2a",
      "old_mode": 33188,
      "old_path": "tests/base_rules/BUILD.bazel",
      "new_id": "e04d3147fd80915d89d2e99ba11a2c57e6be0575",
      "new_mode": 33188,
      "new_path": "tests/base_rules/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "cffb79ba196b36f7cdd8ef142d7bda385d749a6d",
      "old_mode": 33188,
      "old_path": "tests/base_rules/bin.py",
      "new_id": "c46e43adc8bcefe46f706a256b42d6ecb53cce67",
      "new_mode": 33188,
      "new_path": "tests/base_rules/bin.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bf85d26ad25cb71a7af9bae6ae686a895d3fc43b",
      "new_mode": 33261,
      "new_path": "tests/base_rules/inherit_pythonsafepath_env_test.sh"
    }
  ]
}
