)]}'
{
  "commit": "b28db698f50a82bf861b76e7ad6d75c31f1a820e",
  "tree": "e6e630a548420eb27ab1f4fe4cc2c36d404b4014",
  "parents": [
    "15e9b4ab1dd8ced4dc468a307417e2fdcbd47314"
  ],
  "author": {
    "name": "Douglas Thor",
    "email": "dougthor42@users.noreply.github.com",
    "time": "Sun Nov 17 16:38:57 2024 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 18 00:38:57 2024 +0000"
  },
  "message": "refactor: Add GAZELLE_VERBOSE env and log parser failures (#2420)\n\nWhile investigating #2396 and why #2413 doesn\u0027t appear to be working for\nus, I realized that one of the things I was making heavy use of was\nadditional parser logging that I had added. This adds some of that\nlogging. I also throw in some documentation because I found it helpful.\n\nUsers can (attempt to) get additional parse failure information by\nsetting the `GAZELLE_VERBOSE` environment variable to `1`. Eg:\n\n```console\n$ GAZELLE_VERBOSE\u003d1 bazel run //:gazelle\n```\n\nHere are some example logs:\n\n```console\n$ GAZELLE_VERBOSE\u003d1 bazel run //:gazelle\nINFO: Invocation ID: a4e026d8-17df-426c-b1cc-d3980690dd53\n...\nINFO: Running command line: bazel-bin/gazelle\nINFO: Streaming build results to: https://btx.cloud.google.com/invocations/a4e026d8-17df-426c-b1cc-d3980690dd53\ngazelle: WARNING: failed to parse \"hello/get_deps.py\". The resulting BUILD target may be incorrect.\ngazelle: Parse error at {Row:1 Column:0}:\ndef search_one_more_level[T]():\ngazelle: The above was parsed as: (ERROR (identifier) (call function: (list (identifier)) arguments: (argument_list)))\ngazelle: ERROR: failed to generate target \"//hello:get_deps\" of kind \"py_library\": a target of kind \"pyle_py_binary\" with the same name already exists. Use the \u0027# gazelle:python_library_naming_convention\u0027 directive to change the naming convention.\n$\n$ bazel run //:gazelle\nINFO: Invocation ID: 726c9fd6-f566-4c30-95ef-c4781ad155de\n...\nINFO: Running command line: bazel-bin/gazelle\nINFO: Streaming build results to: https://btx.cloud.google.com/invocations/726c9fd6-f566-4c30-95ef-c4781ad155de\ngazelle: WARNING: failed to parse \"hello/get_deps.py\". The resulting BUILD target may be incorrect.\ngazelle: ERROR: failed to generate target \"//hello:get_deps\" of kind \"py_library\": a target of kind \"pyle_py_binary\" with the same name already exists. Use the \u0027# gazelle:python_library_naming_convention\u0027 directive to change the naming convention.\n```\n\n---------\n\nCo-authored-by: Richard Levasseur \u003crichardlev@gmail.com\u003e\nCo-authored-by: Richard Levasseur \u003crlevasseur@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "65a7d992cb8a58960d422523dabad67e1a444d31",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "dd1c2ff67e70646787cbc7bfe36887dcf3a0db33",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "a2b22c2b8fcb355cdca2578e1eb6fb812315f400",
      "old_mode": 33188,
      "old_path": "gazelle/python/file_parser.go",
      "new_id": "910162163905a15aedf64c7e517351c975c63ecd",
      "new_mode": 33188,
      "new_path": "gazelle/python/file_parser.go"
    }
  ]
}
