aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/grpc
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-07-10 10:49:48 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2018-07-10 11:01:57 +0200
commit9162bd920751d3e8c7b0fc3af3009af7e4b3b828 (patch)
tree62c6ad919e67046ab1ed5125e001a3e7451beca9 /third_party/grpc
parent3520d0df30bea0746579c796fe3ca462a809473d (diff)
third_party/protobuf: update protobuf in third_party to version 3.6.0
Diffstat (limited to 'third_party/grpc')
-rw-r--r--third_party/grpc/build_defs.bzl4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/grpc/build_defs.bzl b/third_party/grpc/build_defs.bzl
index 4240c1debf..8ae42acad2 100644
--- a/third_party/grpc/build_defs.bzl
+++ b/third_party/grpc/build_defs.bzl
@@ -6,7 +6,9 @@ load("//third_party/grpc:build_defs.bzl", "java_grpc_library")
def _path_ignoring_repository(f):
if (len(f.owner.workspace_root) == 0):
return f.short_path
- return f.path[len(f.owner.workspace_root)+1:]
+ # If |f| is a generated file, it will have "bazel-out/*/genfiles" prefix
+ # before "external/workspace", so we need to add the starting index of "external/workspace"
+ return f.path[f.path.find(f.owner.workspace_root)+len(f.owner.workspace_root)+1:]
def _gensource_impl(ctx):
if len(ctx.attr.srcs) > 1: