You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pip.parse fails when timeout is passed to underlying whl_archive targets #4077
Yes, the previous version in which this bug was not present was: ....
Yes, pip.parse accepted timeouts like the docs mention
Description
A clear and concise description of the problem...
On the tin
🔬 Minimal Reproduction
pip.parse with experimental_index_url and timeout specified breaks this
🔥 Exception or Error
(00:01:57) ERROR: /home/nathanael/.cache/bazel/_bazel_nathanael/f057a3c2a08c6c9f1c59ae3fa9073646/external/rules_python+/python/private/pypi/extension.bzl:615:20: @@rules_python+//python/extensions:rules_python++pip+pypi_312_absl_py_py3_none_any_88476fd8: no such attribute 'timeout' in 'whl_archive' rule
(00:01:57) ERROR: /home/nathanael/.cache/bazel/_bazel_nathanael/f057a3c2a08c6c9f1c59ae3fa9073646/external/rules_python+/python/private/pypi/whl_library.bzl:815:20: Traceback (most recent call last):
File "/home/nathanael/.cache/bazel/_bazel_nathanael/f057a3c2a08c6c9f1c59ae3fa9073646/external/rules_python+/python/private/pypi/extension.bzl", line 615, column 20, in _pip_impl
whl_library(name = name, **args)
File "/home/nathanael/.cache/bazel/_bazel_nathanael/f057a3c2a08c6c9f1c59ae3fa9073646/external/rules_python+/python/private/pypi/whl_library.bzl", line 815, column 20, in whl_library
whl_archive(name = name, **kwargs)
Error in repository_rule: failed to instantiate 'whl_archive' from this module extension
Activity
honnix commentedon Aug 18, 2026
Looks like the same for
environment.aignas commentedon Aug 19, 2026
The correct fix here would be to modify the
hub_builder.bzlfile. PRs are welcome.aignas commentedon Aug 20, 2026
Decided to drop the args on the whl_library side. The hub builder can be modified later.
fix(pypi): drop unsupported args in the whl_library macro (bazel-cont…
honnix commentedon Aug 20, 2026
Sorry I misunderstood this issue. In our case,
pip.parseenvironmentattr not forwarded towhl_archive.aignas commentedon Aug 21, 2026
@honnix, could you please create a ticket with what has regressed just to ensure that we understand the impact? Is it for
envsubst?honnix commentedon Aug 21, 2026
@aignas NVM, I think the fix should work for
environmentas well since it is not supposed to be passed towhl_archive, so the filtering will fix.