Skip to content

How to authenticate with repository_ctx.download? How does auth work? #23481

@grepwood

Description

@grepwood

Crossposting from #7469

For the last 3 years people have been wanting to know how to achieve this. The only person who did is sitting duck and not telling anybody.

We owe this state of affair to the lackluster documentation: https://bazel.build/rules/lib/builtins/repository_ctx

auth 	[dict](https://bazel.build/rules/lib/core/dict.html); default is {}
An optional dict specifying authentication information for some of the URLs.

As such I would like to ask on behalf of everyone who asked so far, to please update the documentation in that regard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-DocumentationDocumentation improvements that cannot be directly linked to other team labelsteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: documentation (cleanup)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions