aboutsummaryrefslogtreecommitdiff
path: root/java_grpc_library.bzl
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2017-11-06 17:11:34 -0800
committerEric Anderson <ejona@google.com>2017-11-06 17:29:12 -0800
commit3936557e7257ae5ffd18f1de91f62ff24b339075 (patch)
tree10fd88659c6cf89c7584eadf66f0a756e1c317a4 /java_grpc_library.bzl
parentf792efe82f9bc95be00bf56f88e8d085fc4cbae0 (diff)
downloadgrpc-grpc-java-3936557e7257ae5ffd18f1de91f62ff24b339075.tar.gz
java_grpc_library: fix remote protos that are 'src's
'includes' were already handled, but not 'src's. This allows you to depend on things like :any_proto from the protobuf repo. Fixes #3650
Diffstat (limited to 'java_grpc_library.bzl')
-rw-r--r--java_grpc_library.bzl4
1 files changed, 2 insertions, 2 deletions
diff --git a/java_grpc_library.bzl b/java_grpc_library.bzl
index 4440d423d..4caf1e416 100644
--- a/java_grpc_library.bzl
+++ b/java_grpc_library.bzl
@@ -28,7 +28,7 @@ def _gensource_impl(ctx):
"--grpc-java_out={0},enable_deprecated={1}:{2}"
.format(flavor, str(ctx.attr.enable_deprecated).lower(), srcdotjar.path)]
+ ["-I{0}={1}".format(_path_ignoring_repository(include), include.path) for include in includes]
- + [src.short_path for src in srcs])
+ + [_path_ignoring_repository(src) for src in srcs])
ctx.action(
command = "cp $1 $2",
inputs = [srcdotjar],
@@ -45,7 +45,7 @@ _gensource = rule(
"flavor": attr.string(
values = [
"normal",
- "lite", # Not currently supported
+ "lite", # Not currently supported
],
default = "normal",
),