Skip to content

Commit

Permalink
bazel: Use new ProtoInfo provider
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drigz authored and achew22 committed Mar 4, 2019
1 parent 15c52a7 commit 87b57f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 87b57f5

Please sign in to comment.