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
This may be an old bug as the code hasn't changed in a while.
Yes, the previous version in which this bug was not present was: ....
Description
A clear and concise description of the problem...
The whl_library restarts for a lot of times before succeeding to fetch the repo causing unnecessary load. This issue is very similar to what rules_go and gazelle have seen in
Put the `PYTHONPATH` entries used in wheel building as a default value
to a
private attribute of the `whl_library` repository rule and use resolved
path of
the interpreter target in creating execution environment to avoid
repository
rule restarts when fetching external dependencies.
The extra private attribute on the `whl_library` removes all but one
restart
and the extra refactor removes the last restart observed when running,
which
also reduces the total execution time from around 50s to 43s on my
machine:
```console
$ cd examples/bzlmod
$ bazel clean --expunge --async && bazel build //entry_points:yamllint
```
Fixes#1399
🐞 bug report
Affected Rule
The issue is caused by the rule:whl_library
Is this a regression?
This may be an old bug as the code hasn't changed in a while.
Yes, the previous version in which this bug was not present was: ....Description
A clear and concise description of the problem...The
whl_library
restarts for a lot of times before succeeding to fetch the repo causing unnecessary load. This issue is very similar to whatrules_go
andgazelle
have seen in🔬 Minimal Reproduction
This can be reproduced by:
🌍 Your Environment
Running on OSX with
bazelisk
invokingbazel
withinrules_python
examples/bzlmod
example.The text was updated successfully, but these errors were encountered: