)]}'
{
  "commit": "f22f39c9de5ee394002d1b50d4d1f8c209c251e9",
  "tree": "763be53d9d9625530caf276d7aabcfa9ff422edd",
  "parents": [
    "dd5db656e3beeed739220dfc0d62e5e5bc88ff36"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "rlevasseur@google.com",
    "time": "Wed Oct 16 09:41:04 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 16 16:41:04 2024 +0000"
  },
  "message": "fix(precompiling): only add pyc to default outputs if precompiling explicitly enabled for target (#2307)\n\nThis fixes a bug where precompiled files were *always* being added to\nthe default outputs\nof a target. The intent is they are only added to a target\u0027s default\noutputs if the\ntarget explicitly opted into precompiling. This went unnoticed because\nthe exec tools\ntoolchain is still disabled by default, so the test that verifies a\nbasic py_binary\u0027s\ndefault outputs didn\u0027t generate implicit pyc files. It was introduced\nwhen fixing the\npyc collection bug.\n\nTo fix, only add the pyc files deemed \"required\", not all the pyc files\ngenerated.\n\nAlso added a test to capture this case to the precompile tests.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "00d8d3627260bb1383349dd45c90c7ccb4e6a5c1",
      "old_mode": 33188,
      "old_path": "python/private/py_executable.bzl",
      "new_id": "ce1288cc294fc0fc70d8c87723ceab8eb69d2c9a",
      "new_mode": 33188,
      "new_path": "python/private/py_executable.bzl"
    },
    {
      "type": "modify",
      "old_id": "9d6ac5f7d4d1f767f052dd3f1816d7592c15bbcf",
      "old_mode": 33188,
      "old_path": "tests/base_rules/precompile/precompile_tests.bzl",
      "new_id": "895f2d3156c79c4d4e4e0eaa0871504179b726a9",
      "new_mode": 33188,
      "new_path": "tests/base_rules/precompile/precompile_tests.bzl"
    }
  ]
}
