-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silence download 404 errors when using bazel downloader (experimental_index_url
and experimental_extra_index_urls
)
#2100
Comments
It's not possible to silence it, but it is possible to explicitly pass the packages that should use a different index, then the error is not present. It might be a good idea to raise a ticket to Leaving this open for now because there is a solution, but not sure how high on the priority list the solution is. |
Thanks @aignas! I've opened bazelbuild/bazel#23173 for such thing - we'll see what they say. I'll see about using |
Later in the code we would only use the results of SimpleAPI if the package has shas, so actually doing these calls is just wasting time, because we would be dropping the results anyway. Work towards bazelbuild#2100
Instead of querying everything in parallel and yielding a lot of 404 warnings, let's query the main index first and then query the other indexes only for the packages that were not yet found. This should make the problem in bazelbuild#2100 not as serious. What is more, we can print the value of for the users to use. Work towards bazelbuild#2100
Later in the code we would only use the results of SimpleAPI if the package has shas, so actually doing these calls is just wasting time, because we would be dropping the results anyway. Work towards #2100
…2531) Instead of querying everything in parallel and yielding a lot of 404 warnings, let's query the main index first and then query the other indexes only for the packages that were not yet found. What is more, we can print the value of `experimental_index_url_overrides` for the users to use. Whilst at it, add a unit test to check the new logic. Fixes #2100, since this is the best `rules_python` can do for now. --------- Co-authored-by: Douglas Thor <dougthor42@users.noreply.github.com>
🚀 feature request
Relevant Rules
pip.parse
when usingexperimental_index_url
andexperimental_extra_index_urls
Description
Using the bazel downloader can result in a lot of warnings:
Can these be silenced in some way?
This may not be feasible/reasonable via rules_python because it's part of Bazel core.
Describe the solution you'd like
An attribute on
pip.parse
would be nice.Describe alternatives you've considered
I'm investigating the bazel
--logging
flag and asking around.The text was updated successfully, but these errors were encountered: