diff options
author | Eric Anderson <ejona@google.com> | 2017-11-06 17:11:34 -0800 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2017-11-06 17:29:12 -0800 |
commit | 3936557e7257ae5ffd18f1de91f62ff24b339075 (patch) | |
tree | 10fd88659c6cf89c7584eadf66f0a756e1c317a4 /java_grpc_library.bzl | |
parent | f792efe82f9bc95be00bf56f88e8d085fc4cbae0 (diff) | |
download | grpc-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.bzl | 4 |
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", ), |