From 87b57f514b555601a094c7d95aafcffe0ba51961 Mon Sep 17 00:00:00 2001 From: Rodrigo Queiro Date: Mon, 4 Mar 2019 17:32:43 +0100 Subject: [PATCH] bazel: Use new ProtoInfo provider The old `.proto` provider will be removed in a future Bazel release: https://github.com/bazelbuild/bazel/issues/7152 The Bazel build now requires Bazel 0.22.0 or newer. --- protoc-gen-swagger/defs.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc-gen-swagger/defs.bzl b/protoc-gen-swagger/defs.bzl index 186178d8892..75a055530f6 100644 --- a/protoc-gen-swagger/defs.bzl +++ b/protoc-gen-swagger/defs.bzl @@ -67,7 +67,7 @@ def _run_proto_gen_swagger(ctx, direct_proto_srcs, transitive_proto_srcs, action return swagger_files def _proto_gen_swagger_impl(ctx): - proto = ctx.attr.proto.proto + proto = ctx.attr.proto[ProtoInfo] grpc_api_configuration = ctx.file.grpc_api_configuration return [DefaultInfo(