Skip to content

Commit ee8c991

Browse files
drigzachew22
authored andcommitted
bazel: Use new ProtoInfo provider
The old `.proto` provider will be removed in a future Bazel release: bazelbuild/bazel#7152 The Bazel build now requires Bazel 0.22.0 or newer.
1 parent c317ef5 commit ee8c991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protoc-gen-swagger/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _run_proto_gen_swagger(ctx, direct_proto_srcs, transitive_proto_srcs, action
6767
return swagger_files
6868

6969
def _proto_gen_swagger_impl(ctx):
70-
proto = ctx.attr.proto.proto
70+
proto = ctx.attr.proto[ProtoInfo]
7171
grpc_api_configuration = ctx.file.grpc_api_configuration
7272

7373
return [DefaultInfo(

0 commit comments

Comments
 (0)