Feature Request: Run custom command to download external dependency #19267
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
Description of the feature request:
I want to use a command like
gsutil cp gs://my-bucket/thing.tar /tmp/thing.tar
to download the@thing
dependency in my workspace. I'd like this to work with the repository cache.Which category does this issue belong to?
External Dependency
What underlying problem are you trying to solve with this feature?
Two use cases:
gsutil
to download GCS files as external dependencies in a bazel workspace in a way that is just as performant ashttp_archive
.artifactregistry://
URLs.Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
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?
https://bazel.build/rules/lib/builtins/repository_ctx#download documents the only mechanism for adding entries to the repository cache using
repository_ctx
: By downloding them from URLs.Related issues:
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: