Question: Bazel downloader should only be reading packages, versions, and hashes from pip.parse.requirements_lock, correct? #2564
Replies: 2 comments
-
The index interaction happens in 2 places:
EDIT: If you are content with the answer feel free to convert the issue to a discussion (the best place for questions in general), otherwise we can groom this into a feature/bug ticket. :) |
Beta Was this translation helpful? Give feedback.
-
Hard to say. My initial reaction was to say "no, we should use the value from
The
Ah, thanks! I wasn't aware we used Discussions (or maybe I forgot...). Done! |
Beta Was this translation helpful? Give feedback.
-
We have a requirements lock file
requirements.txt
. It contains args for--index-url
and--extra-index-url
like so:And our
MODULE.bazel
has:At this point Bazel fails for 401 unauthorized (which is why I'm down this rabbit hole in the first place... you can ignore this):
But if I change
requirements.txt
:I get a different Bazel error. Whaaaaaat?:
Thus, it seems like Bazel may be reading
--extra-index-url
from therequirements.txt
file. Is this intended? If so, why?Given that the different error is asking for username and password, I'm inclined to think it's related to the credential helper. Our credential helper essentially just calls
echo "{headers: {Bearer $(gcloud auth application-default print-access-token)} }"
, so that isn't readingrequirements.txt
.Beta Was this translation helpful? Give feedback.
All reactions