Skip to content
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

repository_ctx.download and download_and_extract should use .netrc #18851

Closed
shs96c opened this issue Jul 6, 2023 · 1 comment
Closed

repository_ctx.download and download_and_extract should use .netrc #18851

shs96c opened this issue Jul 6, 2023 · 1 comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged

Comments

@shs96c
Copy link
Contributor

shs96c commented Jul 6, 2023

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 and http_file have extra code that read the user's .netrc and automatically adds the auth credentials, leading many to believe that repository_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 returns development 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

@iancha1992 iancha1992 added the team-Remote-Exec Issues and PRs for the Execution (Remote) team label Jul 6, 2023
@coeuvre coeuvre added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. and removed team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Jul 11, 2023
@Wyverald
Copy link
Member

dupe of #13709

@Wyverald Wyverald closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

6 participants