aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/grpc
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-07-09 16:45:04 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2018-07-09 16:45:27 +0200
commit8cc62f781ff4e724f8c2f763487390063fcc79e4 (patch)
tree8b9ba11f90fa221167a3538295a201839ab30ce2 /third_party/grpc
parentee62862c3dd52634ac5ec722b98b8a0c994e7155 (diff)
Revert "Update protobuf to 3.6.0. Fixes #5439"
Diffstat (limited to 'third_party/grpc')
-rw-r--r--third_party/grpc/build_defs.bzl4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/grpc/build_defs.bzl b/third_party/grpc/build_defs.bzl
index 8ae42acad2..4240c1debf 100644
--- a/third_party/grpc/build_defs.bzl
+++ b/third_party/grpc/build_defs.bzl
@@ -6,9 +6,7 @@ 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
- # 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:]
+ return f.path[len(f.owner.workspace_root)+1:]
def _gensource_impl(ctx):
if len(ctx.attr.srcs) > 1: