)]}'
{
  "commit": "15cc0b3086ec002499121ab295587e6538e4f999",
  "tree": "5fb4fed544d91815e44a0815f98f1efdee5298d0",
  "parents": [
    "94c77e2fbe98e6a69599ddd58b4adf519c7d8316"
  ],
  "author": {
    "name": "Douglas Thor",
    "email": "dougthor42@users.noreply.github.com",
    "time": "Fri Dec 13 17:49:54 2024 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Dec 14 01:49:54 2024 +0000"
  },
  "message": "fix(gazelle): Support parsing files that use Python3.12 PEP 695 (Type Parameter Syntax) by using dougthor42\u0027s fork of go-tree-sitter (#2496)\n\nReplaces #2413.\n\nFixes #2396.\n\nThis updates the `go-tree-sitter` dependency to use my fork that\nincludes `BUILD.bazel` files. Specifically, the `BUILD.bazel` files in\nthe fork include references to top-level code like `array.h` which the\noriginal Gazelle-generated files for `go-tree-sitter` were not able to\nhandle. I also include the test cases that @maffoo created in #2413 and\nverified that they (a) fail before the fix and (b) pass after the fix.\n\nThe fork is: https://github.com/dougthor42/go-tree-sitter\n\nThe branch that includes all changes is:\nhttps://github.com/dougthor42/go-tree-sitter/tree/for-rules-python-gazelle-plugin\n\nA couple notes:\n+ I have a PR open to get `go-tree-sitter` into BCR\n[here](https://github.com/bazelbuild/bazel-central-registry/pull/3366).\nHowever:\n1. I\u0027m having trouble getting tests to pass and to get things running\nlocally to validate it\n2. Using BCR would not fix things for people who still use WORKSPACE\n(right?)\n+ The fork is _mostly_ [autogenerated BUILD.bazel files from\ngazelle](https://github.com/smacker/go-tree-sitter/commit/cfa9bdf58beb30159807c1846e1c761bce1e6158)\nbut also contains:\n+ [manual updates so that build files reference the toplevel `array.h`\nand other\nfiles](https://github.com/smacker/go-tree-sitter/commit/63f89cd3d471e7e81b51dc7e7205b201fed70fc1)\n+ [replace all `smacker` with `dougthor42` so that `go build`\nworks](https://github.com/smacker/go-tree-sitter/commit/8a73cbdb0e9b5febc314f8b9b4241aa01cc86bd0)\n    + various other more minor things.\n+ I was unable to get `go mod edit -replace` to work, so I\u0027ve just\nmanually updated `go.mod` and whatnot everywhere. If someone with more\ngo knowledge has a suggestion I\u0027m happy to hear it.\n\n---------\n\nCo-authored-by: Matthew Neeley \u003cmaffoo@google.com\u003e\nCo-authored-by: Ignas Anikevicius \u003c240938+aignas@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8605a4a03dcf95a7483aa9b4db9536dbe1d5751c",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "33719187f711456a6915b490484379af6d3d648c",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "0a553831c332be3db4ba6da843169f50739af3fe",
      "old_mode": 33188,
      "old_path": "gazelle/MODULE.bazel",
      "new_id": "6bbc74bc619e6240600b409dd132532f71d90e3d",
      "new_mode": 33188,
      "new_path": "gazelle/MODULE.bazel"
    },
    {
      "type": "modify",
      "old_id": "948d61e5ae522b45a3ad6c1942ffa25fc8b83b9a",
      "old_mode": 33188,
      "old_path": "gazelle/deps.bzl",
      "new_id": "1bdf179e98db8b2df84020ff2437785deee9ac7d",
      "new_mode": 33188,
      "new_path": "gazelle/deps.bzl"
    },
    {
      "type": "modify",
      "old_id": "4b65e71d67dcc157c8442aa67aa14ec4ce07e902",
      "old_mode": 33188,
      "old_path": "gazelle/go.mod",
      "new_id": "29a0b5cb0c6d8ddfbcea0b04b8a95fc4ee093899",
      "new_mode": 33188,
      "new_path": "gazelle/go.mod"
    },
    {
      "type": "modify",
      "old_id": "46e0127e8f4168e2244b3c2dedc1ca340cfc2f54",
      "old_mode": 33188,
      "old_path": "gazelle/go.sum",
      "new_id": "d48da9ece332dddf58189debf46750ab32813f5b",
      "new_mode": 33188,
      "new_path": "gazelle/go.sum"
    },
    {
      "type": "modify",
      "old_id": "627a867c682964768b4500de093beca16083d481",
      "old_mode": 33188,
      "old_path": "gazelle/python/BUILD.bazel",
      "new_id": "893c82e8e46efebcafa66b3ddd411063a135d468",
      "new_mode": 33188,
      "new_path": "gazelle/python/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "a1f47f400c3df2dcbc736179389b7c531bd586a3",
      "old_mode": 33188,
      "old_path": "gazelle/python/file_parser.go",
      "new_id": "c147984fc3f09bb92018460eb832a69bd8ec3197",
      "new_mode": 33188,
      "new_path": "gazelle/python/file_parser.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "af2c2cea4bbfb5ede2e7310af577e8b16459cf80",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/BUILD.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7457f335a79e8f9061149d1ff85a61061e63b461",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/BUILD.out"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "854a0a3aa6f9718c9a22eb3fecda9308599ec0a1",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "faff6af87ac0ef60c3f9dacae80ca00b08118b58",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/WORKSPACE"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/__init__.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/_other_module.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "eff06de5a73b9fabaa0da98ac5d9a11ca9988899",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/pep_695_type_parameter.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ed97d539c095cf1413af30cc23dea272095b97dd",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/py312_syntax/test.yaml"
    }
  ]
}
