)]}'
{
  "commit": "0642390d387ac70e44ee794cc9c6dcf182762ad3",
  "tree": "1f5fa44dfd14a5c2d63926b637a3d13f5f25e324",
  "parents": [
    "23354a9b607ff0207e9a3c0cbe16724ec53997c1"
  ],
  "author": {
    "name": "Chris Love",
    "email": "335402+chrislovecnm@users.noreply.github.com",
    "time": "Tue Jul 25 19:37:32 2023 -0600"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Jul 26 01:37:32 2023 +0000"
  },
  "message": "revert(bzlmod)!: allow bzlmod pip.parse to implicitly use default python version (#1341)\n\nReverts bazelbuild/rules_python#1303\n\nThe main issue is that `pip.parse()` accepts a locked requirements file\n-- this means\nthe requirements are specific to a particular Python version[1]. Because\nthe default Python\nversion can arbitrarily change, the lock file may not be valid for the\nPython version\nthat is used at runtime. The net result is a module will use\ndependencies for e.g. Python\n3.8, but will use 3.9 at runtime. Additionally, the dependencies\nresolved for 3.8 will\nbe created under names such as `@foo_39` (because that\u0027s the\npython_version pip.parse sees),\nwhich is just more confusing.\n\nBREAKING CHANGE:\n* pip.parse() must have `python_version` explicitly set. Set it to the\nPython version\n    used to resolve the requirements file.\n\n[1] Lock files aren\u0027t necessarily version specific, but we don\u0027t\ncurrently support the\nenvironment markers in lock files to make them cross-python-version\ncompatible.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "df88ae84904c9f18674837a5be3827f719ac2386",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/MODULE.bazel",
      "new_id": "be9466d883c8707acded222b847eea86f9c53ed4",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/MODULE.bazel"
    },
    {
      "type": "modify",
      "old_id": "add69a4c64d1f68da0657a9f46a4efb8edf37c25",
      "old_mode": 33188,
      "old_path": "python/extensions/pip.bzl",
      "new_id": "b70327e8f478ebf7cdcd9e9cce3e33d41e7950a8",
      "new_mode": 33188,
      "new_path": "python/extensions/pip.bzl"
    }
  ]
}
