)]}'
{
  "commit": "d69559de837771c8d5c72bf8aef3846e8f40b3ab",
  "tree": "b77aa5e67e9cf70ce2e139d8894c16bed3866915",
  "parents": [
    "4f97f1a4fcb86410e078c020397a139b1912a31b"
  ],
  "author": {
    "name": "WSUFan",
    "email": "fan.ye@wsu.edu",
    "time": "Thu Aug 15 02:13:40 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Aug 15 09:13:40 2024 +0000"
  },
  "message": "fix: correctly handle absolute URLs in parse_simpleapi_html.bzl (#2112)\n\nThis PR addresses a typo and improves the handling of absolute URLs in\nthe\n`parse_simpleapi_html.bzl` file and corrects a minor issue in the\n`simpleapi_download.bzl` file.\n\nSummary:\n1. parse_simpleapi_html.bzl:\n- Introduced a new private function `_get_root_directory(url)` to\nextract\n     the root directory from a given URL.\n- Enhanced `_absolute_url` function to correctly handle absolute URLs by\nutilizing the `_get_root_directory` function. This ensures that URLs\nstarting with a \"/\" are correctly resolved to their full path, avoiding\n     potential incorrect concatenation.\n\n2. simpleapi_download.bzl: Corrected the handling of the `real_url`\nvariable in\nthe `_read_simpleapi` function, ensuring that the correct URL is passed\nto\n   `_read_index_result` when using non-blocking downloads.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "edf01f798f317047f3cae4d01b7646fcb0b0158c",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "c87e76e5beca695797f1e719336574f88b60b83f",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "248846922fd92c416eeb9ec10c0c15ea2cdb17ee",
      "old_mode": 33188,
      "old_path": "python/private/pypi/parse_simpleapi_html.bzl",
      "new_id": "81ee385f8625ca98cb5c735cb10c8e29ff8779a8",
      "new_mode": 33188,
      "new_path": "python/private/pypi/parse_simpleapi_html.bzl"
    },
    {
      "type": "modify",
      "old_id": "b258fef07ae819aab4e9d393ce5daada773a5299",
      "old_mode": 33188,
      "old_path": "python/private/pypi/simpleapi_download.bzl",
      "new_id": "c730c204397d57e67c16d56d0311cb7052436bbd",
      "new_mode": 33188,
      "new_path": "python/private/pypi/simpleapi_download.bzl"
    },
    {
      "type": "modify",
      "old_id": "a532e878a787f2551f898763fd46991c81915ee0",
      "old_mode": 33188,
      "old_path": "tests/pypi/parse_simpleapi_html/parse_simpleapi_html_tests.bzl",
      "new_id": "aa735b83d866ffb21e49be030d534348bda73a97",
      "new_mode": 33188,
      "new_path": "tests/pypi/parse_simpleapi_html/parse_simpleapi_html_tests.bzl"
    }
  ]
}
