aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/grpc
diff options
context:
space:
mode:
authorGravatar David Ostrovsky <david@ostrovsky.org>2017-12-23 08:47:42 +0100
committerGravatar Vladimir Moskva <vladmos@google.com>2018-01-04 14:41:53 +0100
commit7ca9e859597d99c899523603fb9a399766401793 (patch)
treeb41ed525722595595f5e3fb1471f79cdfef8509b /third_party/grpc
parenta8e5eddbf121f75173f580d30c1f69e9e1f0a568 (diff)
grpc rules: Make Skylark rule forwards compatible
This fixes: [f for dep in ctx.attr.srcs for f in dep.proto.transitive_imports] type 'depset' is not iterable. Use the `to_list()` method to get a list. Change-Id: I72b8c1c788a5c193af4d4293f0cf81ba4f0da1c6
Diffstat (limited to 'third_party/grpc')
-rw-r--r--third_party/grpc/build_defs.bzl2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/grpc/build_defs.bzl b/third_party/grpc/build_defs.bzl
index 521ea43c30..db9ed0d40e 100644
--- a/third_party/grpc/build_defs.bzl
+++ b/third_party/grpc/build_defs.bzl
@@ -16,7 +16,7 @@ def _gensource_impl(ctx):
+ "same package as consuming rule").format(ctx.label, s.label))
srcdotjar = ctx.new_file(ctx.label.name + ".jar")
srcs = [f for dep in ctx.attr.srcs for f in dep.proto.direct_sources]
- includes = [f for dep in ctx.attr.srcs for f in dep.proto.transitive_imports]
+ includes = [f for dep in ctx.attr.srcs for f in dep.proto.transitive_imports.to_list()]
ctx.action(
command = " ".join([