)]}'
{
  "commit": "1383bd4fa06c7c449156913f123c452533cdd724",
  "tree": "3edbcf858dcfb099daf218a4068cc5f2445b49f3",
  "parents": [
    "28bc03cd664de130cf78a2fd43109939b9ea2eb2"
  ],
  "author": {
    "name": "Zhongpeng Lin",
    "email": "zplin@uber.com",
    "time": "Wed May 17 10:08:33 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed May 17 17:08:33 2023 +0000"
  },
  "message": "fix: Using canonical name in requirements.bzl (#1176)\n\nWhen `incompatible_generate_aliases \u003d False`, `pip.parse` doesn\u0027t work\nin bzlmod, because requirements.bzl has:\n\n```\nall_requirements \u003d [\"@rules_python~0.21.0~pip~pip_yapf//:pkg\"]\n\nall_whl_requirements \u003d [\"@rules_python~0.21.0~pip~pip_yapf//:whl\"]\n```\n\nStarting Bazel 6, canonical names should be referred with double \"@\".\n\nThe reason why `incompatible_generate_aliases \u003d True` worked is because\nit uses apparent name by parsing the canonical label with `repo_name \u003d\nrctx.attr.name.split(\"~\")[-1]`. This is dangerous because Bazel may\nchange its canonical name pattern in future versions.\n\nThis PR adds a new attribute \"repo_name\" to `pip_repository_bzlmod`, so\nwe have access to the human-readable name in the implementation.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "29cb3d9c328b9b96d15dde24edd3cc25955774d6",
      "old_mode": 33188,
      "old_path": "docs/pip_repository.md",
      "new_id": "7d539c9c44a24546e8e213bef28e602a5be49774",
      "new_mode": 33188,
      "new_path": "docs/pip_repository.md"
    },
    {
      "type": "modify",
      "old_id": "7ecc0358535d47faad66d759ff44213fe72b3cbf",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/BUILD.bazel",
      "new_id": "3183608897adcf14798e14184933d8c7b177655e",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "61d7967d5e6ab229e491c3260355440bb7750910",
      "old_mode": 33188,
      "old_path": "examples/bzlmod/MODULE.bazel",
      "new_id": "d2d7d638711d899853777b250c273944b7a17faa",
      "new_mode": 33188,
      "new_path": "examples/bzlmod/MODULE.bazel"
    },
    {
      "type": "modify",
      "old_id": "2ec2bbf404a2583c4d43312b4db04e3128793711",
      "old_mode": 33188,
      "old_path": "python/extensions/pip.bzl",
      "new_id": "ce5eea30d49daa76fe47894a77776f515a7a3a27",
      "new_mode": 33188,
      "new_path": "python/extensions/pip.bzl"
    },
    {
      "type": "modify",
      "old_id": "5462f1b14d75408b170374f2773a2777dcbf3a2c",
      "old_mode": 33188,
      "old_path": "python/pip_install/pip_repository.bzl",
      "new_id": "406e12113d30a357a4d4d16b52783bf0efca8f42",
      "new_mode": 33188,
      "new_path": "python/pip_install/pip_repository.bzl"
    }
  ]
}
