)]}'
{
  "commit": "18a7bb5b506538835c75d46d4245da08fa695df3",
  "tree": "971d5b68ba6d94e68e2c11b08079eb6d3d266ea6",
  "parents": [
    "62e95a46fec4421d2ae8060c02ea45f800f5ce57"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "rlevasseur@google.com",
    "time": "Tue May 30 14:00:58 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue May 30 21:00:58 2023 +0000"
  },
  "message": "fix: make `import python.runfiles` work with `--experimental_python_import_all_repositories\u003dfalse` (#1243)\n\nBecause `--experimental_python_import_all_repositories` defaults to\ntrue, every repository\u0027s directory is added to `sys.path`, which makes\n`import python.runfiles` work.\n\nHowever, we shouldn\u0027t rely on that behavior for a couple reasons:\n* We recommend disabling it for fewer sys.path entries (even non-Python\nrelated\n    repos get added to the path).\n* Some users _must_ disable it because the resulting PYTHONPATH is too\nlong.\n\nTo fix, set the `imports` attribute on `//python/runfiles:runfiles` so\nthat `import python.runfiles` works. The net result is the\n`rules_python` repo directory is added\nto sys.path even if\n`--experimental_python_import_all_repositories\u003dfalse`.\n\nFixes #1241",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3a93d40f32aebe3eefe42201b15f0bc5c931374c",
      "old_mode": 33188,
      "old_path": "python/runfiles/BUILD.bazel",
      "new_id": "c6cfc2fa9471c01e786bdd2852a2215b1e38b567",
      "new_mode": 33188,
      "new_path": "python/runfiles/BUILD.bazel"
    }
  ]
}
