Skip to content

Commit 1226caa

Browse files
authored
Add error for pip.parse attrs that require other attrs (#2646)
This makes it more clear when you've misconfigured pip.parse
1 parent f4fde65 commit 1226caa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/private/pypi/extension.bzl

+4
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ You cannot use both the additive_build_content and additive_build_content_file a
481481
cache = simpleapi_cache,
482482
parallel_download = pip_attr.parallel_download,
483483
)
484+
elif pip_attr.experimental_extra_index_urls:
485+
fail("'experimental_extra_index_urls' is a no-op unless 'experimental_index_url' is set")
486+
elif pip_attr.experimental_index_url_overrides:
487+
fail("'experimental_index_url_overrides' is a no-op unless 'experimental_index_url' is set")
484488

485489
out = _create_whl_repos(
486490
module_ctx,

0 commit comments

Comments
 (0)