)]}'
{
  "commit": "6661fb563c19ad0bb6c4901d525a3e55858b294e",
  "tree": "d871b8ab7e74bb5ba46211e511512324eac0cb23",
  "parents": [
    "02d1b8c80cb7383fed0c309848b8ec78a8edb29f"
  ],
  "author": {
    "name": "bazel.build machine account",
    "email": "ci.bazel@gmail.com",
    "time": "Wed Oct 21 08:55:01 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 21 08:55:01 2026 +0000"
  },
  "message": "[10.0.0] Fix crash on Starlark rules named `genrule` (#31676) (#31698)\n\n### Description\n`Rule.outputsToBindir()` special-cases rules whose rule class is named\n`genrule` and reads their `output_to_bindir` attribute. This check\ndidn\u0027t exclude Starlark rules, so analyzing any Starlark rule exported\nas `genrule` crashed Bazel with:\n\njava.lang.IllegalArgumentException: No such attribute output_to_bindir\nin genrule rule //a:g\n\nRestrict the special case to the native rule, matching the existing\n`!ruleClass.isStarlark()` check in `ToolchainContextUtil`.\n\n### Motivation\n\n### Build API Changes\n\nNo\n\n### Checklist\n\n- [x] I have added tests for the new use cases (if any).\n- [ ] I have updated the documentation (if applicable).\n\n### Release Notes\n\nRELNOTES: None\n\nCloses #31676\n\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/bazel/pull/31676\nfrom fmeum:ccr-3e4f2a29-vlgvys cba4c2cfddf4eca60d430fd79ceb57a3181034db\nPiperOrigin-RevId: 996621986\nChange-Id: I645e770ee230cb69c9a5c1c30262cfcced08aca9\n\nCommit\nhttps://github.com/bazelbuild/bazel/commit/d5ab4e5c0009ae2b4bf9a3f56d035f4ebf90120f\n\nCo-authored-by: Fabian Meumertzheim \u003cfabian@buildbuddy.io\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7d46fe16d32cddc25d078c621e8ee8e95dab6f05",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/packages/Rule.java",
      "new_id": "f29780a0220f231b3b09f3b8e4b9eff48f44e6ed",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/packages/Rule.java"
    },
    {
      "type": "modify",
      "old_id": "b86921f2900d19d3ea1099dab4cad5a398295845",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleConfiguredTargetTest.java",
      "new_id": "f0e581dd1b280492173d983f557d4eee80d6a72a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleConfiguredTargetTest.java"
    }
  ]
}
