)]}'
{
  "commit": "64ae363d06ffb959fc5e013c0e2c3a7dab1c1019",
  "tree": "2f84adb8125ec45fd12a10c78b76261a51251d82",
  "parents": [
    "8d8ca98459c2a1af5f7c8b6d88b4bf15646aff32"
  ],
  "author": {
    "name": "Deepa",
    "email": "deepalakshmib@google.com",
    "time": "Tue Nov 17 15:29:43 2026 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 17 10:59:43 2026 +0100"
  },
  "message": "[8.9.0] Fix `.ar` extraction of BSD long names with NUL padding (#32592) (#32724)\n\nThis PR fixes two problems. We found them when we updated the macOS CI\nimage to macOS 26 with Xcode 26.\n\n**1. Bazel cannot extract macOS static libraries.**\nThe macOS `ar` tool writes some member names as `#1/\u003clen\u003e` and puts NUL\nbytes after the name, for example `__.SYMDEF SORTED\\0\\0\\0\\0`. Bazel kept\nthe NUL bytes in the file name, and the extraction failed with `Invalid\nfile path`. All macOS static libraries have this symbol table member.\n\nFix: `ArFunction` removes the NUL bytes at the end of entry names.\n\n**2. `test_extract_non_readable_file_ar` fails with Xcode 26.**\nThe test creates its archive with the system `ar` tool. With Xcode 26,\n`ar` runs `ranlib`. `ranlib` removes members that are not Mach-O files,\nso the archive contains only an empty `__.SYMDEF SORTED` member.\n\nFix: The test writes the archive with Python. It does not use the system\n`ar` tool.\n\nRepro (Xcode 26):\n\n```\necho hello \u003e f.txt \u0026\u0026 ar rc f.ar f.txt \u0026\u0026 ar t f.ar   # prints only \"__.SYMDEF SORTED\"\n```\n\nTests:\n- Added `ArFunctionTest.testDecompressBsdLongNamesWithNulPadding`.\n- Ran `test_extract_non_readable_file_ar` on a macOS 26.7.2 VM with\nXcode 26.6.\n\nCloses #32592\n\nCo-authored-by: Yun Peng \u003cpcloudy@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7d44bbf97b09c8bf6f7fbb9fcc9cf51a95fc4b09",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/ArFunction.java",
      "new_id": "7b92dab65cedc2370ebaa4dfbceb9fd4587fac75",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/ArFunction.java"
    },
    {
      "type": "modify",
      "old_id": "5db3857a3f949701d14fee1c3bc3e9000edf1778",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/ArFunctionTest.java",
      "new_id": "885fa5e3155a8bf74e7bb70c951deb75b5a57512",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/ArFunctionTest.java"
    },
    {
      "type": "modify",
      "old_id": "955003b817758ff4f9ef8dd1161c7f80a2eaf455",
      "old_mode": 33261,
      "old_path": "src/test/shell/bazel/starlark_repository_test.sh",
      "new_id": "3026b5761505c59633bf0fd1f127d138bbc786ff",
      "new_mode": 33261,
      "new_path": "src/test/shell/bazel/starlark_repository_test.sh"
    }
  ]
}
