repository_ctx.download and download_and_extract should use .netrc
#18851
Labels
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
untriaged
Description of the feature request:
A frequent way of providing necessary credentials for accessing remote resources is to use a
.netrc
and add entries to that.Utility macros like
http_archive
andhttp_file
have extra code that read the user's.netrc
and automatically adds the auth credentials, leading many to believe thatrepository_ctx.download
does this already. It does not, but it would be nice if it did.What underlying problem are you trying to solve with this feature?
Network access should use the credentials provided by the user where possible, and do so automatically.
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?6.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: