Skip to content

Commit a11735f

Browse files
committed
fix requested versions
1 parent fd13f90 commit a11735f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python/private/pypi/simpleapi_download.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def simpleapi_download(
116116
index_url = index_url_overrides.get(pkg_normalized, index_url),
117117
distribution = pkg,
118118
get_auth = get_auth,
119-
requested_versions = versions,
119+
requested_versions = {v: None for v in versions},
120120
**download_kwargs
121121
)
122122
if hasattr(result, "wait"):
@@ -264,7 +264,7 @@ def strip_empty_path_segments(url):
264264
else:
265265
return "{}://{}".format(scheme, stripped)
266266

267-
def _read_simpleapi(ctx, index_url, distribution, attr, cache, get_auth = None, return_absolute = True, requested_versions = [], **download_kwargs):
267+
def _read_simpleapi(ctx, index_url, distribution, attr, cache, requested_versions, get_auth = None, return_absolute = True, **download_kwargs):
268268
"""Read SimpleAPI.
269269
270270
Args:
@@ -366,6 +366,7 @@ def _read_simpleapi_with_facts(ctx, index_url, distribution, facts = None, reque
366366
ctx,
367367
index_url = index_url,
368368
distribution = distribution,
369+
requested_versions = requested_versions,
369370
return_absolute = False,
370371
**download_kwargs
371372
)

0 commit comments

Comments
 (0)