Support build_file
or build_file_content
for http_file
#25383
Labels
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
untriaged
Description of the feature request:
I would like to use
http_file
to download a single proto file.I cannot use this natively in a
proto_library
due to the following via https://github.com/protocolbuffers/protobuf/blob/2d6ab3ce45f85af6bffd694659148062ba9aecde/bazel/private/bazel_proto_library_rule.bzl#L24C5-L24C24You can get around this in two ways:
A dummy genrule to copy it to local package
http_archive with custom build_file
The custom
build_file_content
can create theproto_library
and therefore be in the same package.Both of these feels unnecessary; pulling in protobuf files should be a straightforward UX in Bazel.
The text was updated successfully, but these errors were encountered: