allow value of --credential_helper to be an inline bash script #19475
Labels
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
untriaged
Description of the feature request:
Currently, the value of
--credential_helper
can be either the path to a script that resides in the workspace or an executable onPATH
. This forces users to install the helper beforehand which is undesirable for ruleset authors to force upon users.Which category does this issue belong to?
CLI, Loading API, Rules API
What underlying problem are you trying to solve with this feature?
Our two rulesets suffer from this because
rctx.download[_and_extract]
does not support setting arbitrary headers to be sent over the HTTP requests. See #17829, therefore we are forced to use credential helpers to be able to set custom headers.The motivation for this change is that it is easy to tell users to add a few lines to their bazelrc which will add headers based on our custom logic using a bash script.
For example, i can tell users to add these to their bazelrc
whereas telling them to install an obscure binary from the internet.
Which operating system are you running Bazel on?
darwin/arm64
What is the output of
bazel info release
?release 6.3.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: