)]}'
{
  "commit": "1d1efe906b4c5bf215f807844ba9b53869fa53e6",
  "tree": "b1a0811f0242a8e7edfd0cc0618350ca8afc4987",
  "parents": [
    "ce749147a9a4f8fc8ef6141bf34ab538ed7f7476"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "anikevicius@gmail.com",
    "time": "Tue May 02 02:34:57 2023 +0900"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon May 01 10:34:57 2023 -0700"
  },
  "message": "fix(bzlmod): correctly template repository macros for requirements, etc (#1190)\n\nIt seems that the macros for specifying the requirements break when the\r\nuser starts using `incompatible_generate_aliases\u003dTrue`. This PR fixes\r\nthis.\r\n\r\nTesting done:\r\n1. Modify the example:\r\n   ```\r\n   $ git diff\r\ndiff --git a/examples/bzlmod/MODULE.bazel b/examples/bzlmod/MODULE.bazel\r\n   index ce91228..1750210 100644\r\n   --- a/examples/bzlmod/MODULE.bazel\r\n   +++ b/examples/bzlmod/MODULE.bazel\r\n   @@ -26,6 +26,7 @@ register_toolchains(\r\n    pip \u003d use_extension(\"@rules_python//python:extensions.bzl\", \"pip\")\r\n    pip.parse(\r\n        name \u003d \"pip\",\r\n   +    incompatible_generate_aliases\u003dTrue,\r\n        requirements_lock \u003d \"//:requirements_lock.txt\",\r\n        requirements_windows \u003d \"//:requirements_windows.txt\",\r\n    )\r\n   ```\r\n2. Run `bazel build ...` and check that it is still working.\r\n\r\nI noticed this when working on #1189 and creating a separate PR for\r\neasier cherry-picking if we wanted to make a patch release which\r\nincludes this. I am not sure how I could make an automated test for this\r\nother than creating a separate example.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fce0dcdd477858a51317fde51a013e42781f916f",
      "old_mode": 33188,
      "old_path": "python/pip_install/pip_repository.bzl",
      "new_id": "1ea7bca88a561fff08059dc24ee83b2f914277cd",
      "new_mode": 33188,
      "new_path": "python/pip_install/pip_repository.bzl"
    },
    {
      "type": "modify",
      "old_id": "462829d07460041e1c1819a041bc505e09a5e1be",
      "old_mode": 33188,
      "old_path": "python/pip_install/pip_repository_requirements_bzlmod.bzl.tmpl",
      "new_id": "1b2e2178bbb3ec513737eb49100788d12da7f39f",
      "new_mode": 33188,
      "new_path": "python/pip_install/pip_repository_requirements_bzlmod.bzl.tmpl"
    }
  ]
}
