From fe580cb60abfc1cff455b20505063ffde21418c5 Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 11 May 2026 15:28:38 +0000 Subject: [PATCH] fix(pypi): allow index probes to fail on root path --- python/private/pypi/simpleapi_download.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/private/pypi/simpleapi_download.bzl b/python/private/pypi/simpleapi_download.bzl index 63044bc14a..c3f3c56d8e 100644 --- a/python/private/pypi/simpleapi_download.bzl +++ b/python/private/pypi/simpleapi_download.bzl @@ -158,6 +158,7 @@ def _get_dist_urls(ctx, *, default_index, index_urls, index_url_overrides, sourc parse_index = True, versions = {pkg: None for pkg in sources}, block = block, + allow_fail = True, **kwargs ) if hasattr(download, "wait"): @@ -170,6 +171,8 @@ def _get_dist_urls(ctx, *, default_index, index_urls, index_url_overrides, sourc found_on_index = {} for index_url, result in results.items(): + if not result.success: + continue for pkg in sources: if pkg in found_on_index: # We have already found the package, skip searching for it in