)]}'
{
  "commit": "fb5ad02bacb7b33e95e74e5b3ce60fdc69218bc2",
  "tree": "12cb7e478ca2428da58a91b886f966106dd9a218",
  "parents": [
    "c0cc20677f9449b65970b0cb46474187099627f0"
  ],
  "author": {
    "name": "Jonathan Gopel",
    "email": "jgopel@gmail.com",
    "time": "Tue Nov 03 17:43:18 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 03 17:43:18 2026 +0000"
  },
  "message": "fix: make main_module work with precompiling (#4403)\n\nExecutables using `main_module` and `pyc_collection \u003d \"include_pyc\"`\nfail during analysis. This failure is due to the fact that the bytecode\ncollection handling expects a main file reference in the source to\nbytecode map, but `main_module` explicitly does not have this because\nmodule entrypoints are resolved at runtime.\n\nPython\u0027s import machinery resolves module entrypoints at runtime and\nsupports bytecode loading, so in that case there\u0027s no file entry point\nto find during analysis. Limit the analysis-time entrypoint substitution\nto file-based entrypoints.\n\n---------\n\nCo-authored-by: Richard Levasseur \u003crichardlev@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5585c3dfa04316bdd01bc2b68865adbcc40d1a25",
      "new_mode": 33188,
      "new_path": "news/main-module-precompile.fixed.md"
    },
    {
      "type": "modify",
      "old_id": "e8240da894936e4f0d6a8e6e3cd16b787b9e1e60",
      "old_mode": 33188,
      "old_path": "python/private/py_executable.bzl",
      "new_id": "3498c888f9f81ee4133d006d8c86d70d3a0dd3c2",
      "new_mode": 33188,
      "new_path": "python/private/py_executable.bzl"
    },
    {
      "type": "modify",
      "old_id": "f8f3b6838dcdf5ebffaf684e2de5e54d41b697f1",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/BUILD.bazel",
      "new_id": "f5c8c1fe82e10c2ec54bce4d0c1aebf66675761d",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/BUILD.bazel"
    }
  ]
}
