From 3b2b2509b22f74ce09e2802cf5278ffb3d9611d9 Mon Sep 17 00:00:00 2001 From: Yannic Bonenberger Date: Wed, 22 Aug 2018 14:07:52 +0200 Subject: [PATCH] Add "strictDependencies" to suppress attribute of Bazel rule Not suppressing this causes an error for a missing direct dependency for the generated gRPC-Web library if a service returns a protobuf message not declared in the same proto_library. --- bazel/closure_grpc_web_library.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bazel/closure_grpc_web_library.bzl b/bazel/closure_grpc_web_library.bzl index d51cd1545..debdcc324 100644 --- a/bazel/closure_grpc_web_library.bzl +++ b/bazel/closure_grpc_web_library.bzl @@ -123,7 +123,8 @@ def _closure_grpc_web_library_impl(ctx): suppress = [ "misplacedTypeAnnotation", - "unusedPrivateMembers" + "unusedPrivateMembers", + "strictDependencies", ] library = closure_js_library_impl(