)]}'
{
  "commit": "632d28211321b01d897829c078897158db313f51",
  "tree": "8d189dbbd1931486d611d5338646b97f05e2e8ac",
  "parents": [
    "a640dc240f79ef811fb4089436f1ba6d84ea6bc9"
  ],
  "author": {
    "name": "bazel.build machine account",
    "email": "ci.bazel@gmail.com",
    "time": "Thu Jul 09 19:27:19 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Jul 09 17:27:19 2026 +0000"
  },
  "message": "[9.2.0] Prevent UrlRewriterParseException from being wrapped in RuntimeException (https://github.com/bazelbuild/bazel/pull/28305) (#30212)\n\nWhen attempting to run a Bazel command, Bazel server will shutdown and\nexit with an unexpected error when the [downloader\nconfig](https://bazel.build/reference/command-line-reference#common_options-flag--downloader_config)\nis invalid:\n\n```\n$ echo \"#test\\nfoo\" \u003e bazel_downloader.cfg\n$ cat bazel_downloader.cfg\n#test\nfoo\n$ bazel-dev build //... --downloader_config\u003dbazel_downloader.cfg\n\u003c exits immediately with the Bazel server killed \u003e\n$ echo $?\n37\n```\n\n`37` corresponds to `Unhandled Exception / Internal Bazel Error` as per\nthe [docs](https://bazel.build/run/scripts#exit-codes).\n\nThis PR introduces changes that will let catch and rethrow\n`UrlRewriterParseException` before `Closer.rethrow()` to prevent it from\nbeing wrapped in `RuntimeException`.\n\n```\n$ bazel-dev-fixed query //... --downloader_config\u003dbazel_downloader.cfg\n...\nERROR: Failed to parse downloader config at bazel_downloader.cfg:2: Unable to parse: foo\n$ echo $?\n2\n```\n\nCloses #28305.\n\nPiperOrigin-RevId: 891501161\nChange-Id: I3cbfe2e2cdcad14c6b5e8210e2e1b8e999eba0ae\n\nCommit\nhttps://github.com/bazelbuild/bazel/commit/45ea1f009a76996b32d8eda0bd5f43f958a68293\n\nCo-authored-by: Alexey Tereshenkov \u003c50622389+AlexTereshenkov@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a64f77a22cfb378de4e3ea630ba59d3871629027",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriter.java",
      "new_id": "abd7a0169e16cfe03aa2c5d3817ecb095e50e19d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriter.java"
    },
    {
      "type": "modify",
      "old_id": "2b50306543a5e171b4f1060c9b026cf284e18d59",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriterTest.java",
      "new_id": "9e1c6e3491c035ac3b289fe69c4f52d07af0416d",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriterTest.java"
    }
  ]
}
