)]}'
{
  "commit": "19325443485c34d66bc9cb0bb3e2b11240167da9",
  "tree": "7fdf250002d4f92bdc557cf8e4f418e2d5095539",
  "parents": [
    "4346401ce852c026db18720eaafde9e22cb95037"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "richardlev@gmail.com",
    "time": "Fri Nov 13 21:41:09 2026 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Nov 13 21:41:09 2026 -0800"
  },
  "message": "refactor(zipapp): port zip_main_maker to Rust and add it to shrubbery (#4440)\n\nReplace the Python `zip_main_maker` used by `py_zipapp`\u0027s\n`PyZipAppCreateMainPy` action with a Rust implementation. Together with\n`exe_zip_maker` and `zipper`, all `py_zipapp` zip actions now run\nthrough `shrubbery` without invoking a Python interpreter when\n`shrubbery` is resolved.\n\n`crates/zip_main_maker` mirrors `tools/zipapp/zip_main_maker.py`: it\nparses the same CLI and `@flagfile` flags, hashes sorted manifest lines\nand file contents or symlink targets with SHA-256 across regular,\nsymlink, inferred-symlink (`-1`), empty, and explicit-symlink entries,\nand applies template substitutions. `py_zipapp` selects the\n`zip_main_maker` subcommand via `get_shrubbery_tool` and falls back to\nthe Python tool when no `shrubbery` toolchain is resolved.\n\n* Also extract `crates/zip_manifest` so `zipper` and `zip_main_maker`\n  share `|`-delimited manifest line and `is_symlink` parsing.\n* Also return `std::process::ExitCode` instead of `i32` or\n  `process::exit` from `shrubbery` and its subcommand crates.\n* Also document in agent guidance that\n  `# buildifier: disable\u003dbzl-visibility` is allowed on repo-internal\n  `/private/` helper loads in non-`python/` packages such as `crates/`\n  and `tools/`.\n\nWork towards #4250",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5b12fad861f727801721fa15cccc4a2f94bff859",
      "old_mode": 33188,
      "old_path": ".agents/rules/rules_python.md",
      "new_id": "0659b0ba67dff42448148a314ecbea9bdf47f6dd",
      "new_mode": 33188,
      "new_path": ".agents/rules/rules_python.md"
    },
    {
      "type": "modify",
      "old_id": "04eae5afed2f005182fd34da610ff80e3e5e14bd",
      "old_mode": 33188,
      "old_path": ".agents/skills/review-code/review-justification-auditor-prompt.md",
      "new_id": "d95aaa15124c2275a42eea1731188345044d032d",
      "new_mode": 33188,
      "new_path": ".agents/skills/review-code/review-justification-auditor-prompt.md"
    },
    {
      "type": "modify",
      "old_id": "c728e55b29b3b3b4e8b9cedd74c6a55aae7426e7",
      "old_mode": 33188,
      "old_path": ".agents/skills/review-code/review-starlark-prompt.md",
      "new_id": "a8fd4144e664a95d0484e36bfe29a02ed48963cd",
      "new_mode": 33188,
      "new_path": ".agents/skills/review-code/review-starlark-prompt.md"
    },
    {
      "type": "modify",
      "old_id": "c762122d47824016bffbd4262b5f942135957c20",
      "old_mode": 33188,
      "old_path": "AGENTS.md",
      "new_id": "118bb366d0ab80682ebbf0f5bcd23efb7d6b3337",
      "new_mode": 33188,
      "new_path": "AGENTS.md"
    },
    {
      "type": "modify",
      "old_id": "dc3c029c330856b75e14be36ec5f34da62465fd5",
      "old_mode": 33188,
      "old_path": "crates/Cargo.Bazel.lock",
      "new_id": "4a1b392b40ad18fff6900718710e84c51984233f",
      "new_mode": 33188,
      "new_path": "crates/Cargo.Bazel.lock"
    },
    {
      "type": "modify",
      "old_id": "a79004f93f03e8da47416e0bd25db38181c3ab9a",
      "old_mode": 33188,
      "old_path": "crates/Cargo.lock",
      "new_id": "22e69799b16a10de055b53f99c06469eb1a199a9",
      "new_mode": 33188,
      "new_path": "crates/Cargo.lock"
    },
    {
      "type": "modify",
      "old_id": "991f8337600311f0ecda48d427f65c82292bc13d",
      "old_mode": 33188,
      "old_path": "crates/Cargo.toml",
      "new_id": "b7390645125a22725e4e7a2a6f6aecdbf694e536",
      "new_mode": 33188,
      "new_path": "crates/Cargo.toml"
    },
    {
      "type": "modify",
      "old_id": "b7fc19ec22bf1579aa4333f908a61b74ed0fc976",
      "old_mode": 33188,
      "old_path": "crates/exe_zip_maker/src/lib.rs",
      "new_id": "b5c15fc8c849201254c27fa6569ffca80d5a22dd",
      "new_mode": 33188,
      "new_path": "crates/exe_zip_maker/src/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "eba84f860c9bdd55eb812e7659847893b26323c9",
      "old_mode": 33188,
      "old_path": "crates/shrubbery/BUILD.bazel",
      "new_id": "4c7930f16f2c3aead60ee2406e9764e0e1cc08cf",
      "new_mode": 33188,
      "new_path": "crates/shrubbery/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "ef97e4593c79b7a2b1d63aefb41a382ec52b64d0",
      "old_mode": 33188,
      "old_path": "crates/shrubbery/src/lib.rs",
      "new_id": "b8ef34a96c236a857801e36ad28338bcfbc44ae7",
      "new_mode": 33188,
      "new_path": "crates/shrubbery/src/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "5399c67ddc81960ee0dbb87e9e7ed4c206729d35",
      "old_mode": 33188,
      "old_path": "crates/shrubbery/src/main.rs",
      "new_id": "522d7eb0889eee62bbfe4a3fa1f05d197ffe1432",
      "new_mode": 33188,
      "new_path": "crates/shrubbery/src/main.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "26860bc2903cedb2b82c8c29aac0634bb550ce90",
      "new_mode": 33188,
      "new_path": "crates/zip_main_maker/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b10cebfaaff82ee8ae36c852fa8fa327e2dd3423",
      "new_mode": 33188,
      "new_path": "crates/zip_main_maker/src/lib.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b21b0af2c7b9d6e04774b5a2e3c8ded76698e5a1",
      "new_mode": 33188,
      "new_path": "crates/zip_manifest/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4a547361886e5e81f8353212383a7b0fc8ac6db5",
      "new_mode": 33188,
      "new_path": "crates/zip_manifest/src/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "344ee2f52731c9ca85a2971cc50f4057a9f1a96b",
      "old_mode": 33188,
      "old_path": "crates/zipper/BUILD.bazel",
      "new_id": "1d30f8d322944dd61676997ec08faa9709f958e4",
      "new_mode": 33188,
      "new_path": "crates/zipper/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "b3a847f7ecb803875d31456c49ca6eb2f6bea1ee",
      "old_mode": 33188,
      "old_path": "crates/zipper/src/lib.rs",
      "new_id": "c89cfd62060d6859581d20791ed388a48537c609",
      "new_mode": 33188,
      "new_path": "crates/zipper/src/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "be00b0426457a5ea8d850356c350d9bc3b5a64e8",
      "old_mode": 33188,
      "old_path": "python/private/zipapp/py_zipapp_rule.bzl",
      "new_id": "425bbef059cb08206bffbe62254aeebc82a3bc78",
      "new_mode": 33188,
      "new_path": "python/private/zipapp/py_zipapp_rule.bzl"
    },
    {
      "type": "modify",
      "old_id": "141b4441feb1c7604981c3a8a82198a3358aa558",
      "old_mode": 33188,
      "old_path": "tests/exe_zip_maker/exe_zip_maker_test.rs",
      "new_id": "4aef612dfad32b6ec8db4562c8c194f401cfd3c5",
      "new_mode": 33188,
      "new_path": "tests/exe_zip_maker/exe_zip_maker_test.rs"
    },
    {
      "type": "modify",
      "old_id": "1c61188f2ba50aacc76636f7abbb8ac9093cf6da",
      "old_mode": 33188,
      "old_path": "tests/integration/prebuilt_toolchain_test.py",
      "new_id": "b847bdb60228d312c7cf182a6244a6125fbc05e3",
      "new_mode": 33188,
      "new_path": "tests/integration/prebuilt_toolchain_test.py"
    },
    {
      "type": "modify",
      "old_id": "8d94aabde477f1a3634c2955f966ddd6d3964345",
      "old_mode": 33188,
      "old_path": "tests/shrubbery/shrubbery_test.rs",
      "new_id": "97496e2ac98f4976f6275d919e5553f99a4037ea",
      "new_mode": 33188,
      "new_path": "tests/shrubbery/shrubbery_test.rs"
    },
    {
      "type": "modify",
      "old_id": "7a6f6393353b2cddcfd712ba47c28dc115ca280e",
      "old_mode": 33188,
      "old_path": "tests/shrubbery_toolchain/shrubbery_toolchain_tests.bzl",
      "new_id": "da79d2df7aed339db36445e9b6f3432cc5af281e",
      "new_mode": 33188,
      "new_path": "tests/shrubbery_toolchain/shrubbery_toolchain_tests.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "92f37c5e82a2cc3a82ce8aaf812ca04dc37a4177",
      "new_mode": 33188,
      "new_path": "tests/zip_main_maker/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cb844371e40a5d8d860c580a8176010204c08d64",
      "new_mode": 33188,
      "new_path": "tests/zip_main_maker/zip_main_maker_test.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "42a7e144a5c391c36b0b914c4cbb1dcb3d89f159",
      "new_mode": 33188,
      "new_path": "tests/zip_manifest/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "885b8ee3356c2bdb131523c66c72e25118da96d0",
      "new_mode": 33188,
      "new_path": "tests/zip_manifest/zip_manifest_test.rs"
    }
  ]
}
