)]}'
{
  "commit": "60e831405d6b74450cb52a97df8881ca67f60373",
  "tree": "3fde096c424c600942efee2d91ce16fd7c390698",
  "parents": [
    "f87289f12fa5e5a4b87c2f16ebbfbcf651f7f9bf"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Mon Sep 14 11:10:43 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Sep 14 11:14:09 2026 -0700"
  },
  "message": "Report invalid checksums in the lockfile as a parse error (#31106)\n\n### Description\nThe type adapter for registry file hashes in `MODULE.bazel.lock` throws a `JsonParseException` for a string that isn\u0027t a valid SHA-256 checksum, but `BazelLockFileFunction` only caught its `JsonSyntaxException` subclass. Such a lockfile crashed Bazel with an internal error instead of failing with the usual `Failed to read and parse the MODULE.bazel.lock file` error.\n\n### Motivation\nFound while writing tests for #31101.\n\n### Build API Changes\nNo\n\n### Release Notes\nRELNOTES: None\n\nCloses #31106\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/bazel/pull/31106 from fmeum:fix-lockfile-invalid-checksum b695bd474d681dcfa791aff7f7335d561cf36feb\nPiperOrigin-RevId: 981250238\nChange-Id: Iecd6a6cdaa2cfdf0c7cd6a05833c8b6726621185\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7b64a3799a756d85d69fa3461ad1adc0ed1d3d37",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelLockFileFunction.java",
      "new_id": "923d5795b759434735eaff935d05092f5abe83ea",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelLockFileFunction.java"
    },
    {
      "type": "modify",
      "old_id": "f62daf90ac7b0c87c093ad280d6c3edcb80ed6f3",
      "old_mode": 33188,
      "old_path": "src/test/py/bazel/bzlmod/bazel_lockfile_test.py",
      "new_id": "82b6f82daa70d7c6304f0a55fc1974757aec7b3f",
      "new_mode": 33188,
      "new_path": "src/test/py/bazel/bzlmod/bazel_lockfile_test.py"
    }
  ]
}
