)]}'
{
  "commit": "bee35ef2abb0a1b59123500528c7d4ca0cd8a688",
  "tree": "58388bba3d267636d1d8bc67d966c530c10bc5b8",
  "parents": [
    "669e81e0949a3a12545c296c3d1ab3434a26d6a4"
  ],
  "author": {
    "name": "Zhongpeng Lin",
    "email": "zplin@uber.com",
    "time": "Wed Oct 11 20:59:34 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Oct 12 03:59:34 2023 +0000"
  },
  "message": "fix: allowing to import code generated from proto with strip_import_prefix (#1406)\n\nWhen the `proto_library` has `strip_import_prefix`, the py files from\nproto are generated into a directory like\n`bazel-bin/tests/py_proto_library/proto/_virtual_imports` and symlinked\nin the runfiles as `\u003crunfilesroot\u003e/\u003cworkspace\nname\u003e/tests/py_proto_library/proto/_virtual_imports`.\nWe need to add `\u003cworkspace\nname\u003e/tests/py_proto_library/proto/_virtual_imports` to the `imports` of\n`_PyProtoInfo`, so it will be appended to `PYTHONPATH`.\n\nModified an existing example to demonstrate the scenario and verify the\nfix.\n\n---------\n\nCo-authored-by: Ignas Anikevicius \u003c240938+aignas@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ca61e0c336e8627655ba57e605c4ff8b2ac2d1a0",
      "old_mode": 33188,
      "old_path": ".bazelrc",
      "new_id": "753c38f70fb8d927d41456835ed35b4c1e588df8",
      "new_mode": 33188,
      "new_path": ".bazelrc"
    },
    {
      "type": "modify",
      "old_id": "1675c5bcf3b4e4b80565735cc664387d254f33c8",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "bf09665ccbe44f2b8ec0e75c650a704183e2eb90",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "7a18a5e4e1a6b694f6edac3ab0611d29f7475ab5",
      "old_mode": 33188,
      "old_path": "examples/py_proto_library/BUILD.bazel",
      "new_id": "f9ec69d2fd37d9ece4b4c7a465c8ac225090bbba",
      "new_mode": 33188,
      "new_path": "examples/py_proto_library/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "917d023abd00091d4a46d9e3d47a5d77c390d1f8",
      "new_mode": 33188,
      "new_path": "examples/py_proto_library/example.com/proto/BUILD.bazel"
    },
    {
      "type": "rename",
      "old_id": "c952248846041131e6dca39e4bef1fa9c3aa7bbe",
      "old_mode": 33188,
      "old_path": "examples/py_proto_library/pricetag.proto",
      "new_id": "c952248846041131e6dca39e4bef1fa9c3aa7bbe",
      "new_mode": 33188,
      "new_path": "examples/py_proto_library/example.com/proto/pricetag.proto",
      "score": 100
    },
    {
      "type": "modify",
      "old_id": "9f09702f8c4e37e6f52ff908c71872054d9f7368",
      "old_mode": 33188,
      "old_path": "examples/py_proto_library/test.py",
      "new_id": "ec24600740076139fb96b23b7286a56387610d20",
      "new_mode": 33188,
      "new_path": "examples/py_proto_library/test.py"
    },
    {
      "type": "modify",
      "old_id": "9377c8513cbfa9169433a48cd1eb10ec5c84d369",
      "old_mode": 33188,
      "old_path": "python/private/proto/py_proto_library.bzl",
      "new_id": "116590f1a39ddaa2f6aeec3af7d7cfb70b4a5f54",
      "new_mode": 33188,
      "new_path": "python/private/proto/py_proto_library.bzl"
    }
  ]
}
