Skip to content

Commit

Permalink
Migrate protobuf for bazelbuild/bazel#7152
Browse files Browse the repository at this point in the history
This PR migrates protobuf.bzl for Bazel's incompatible change bazelbuild/bazel#7152.
  • Loading branch information
hlopko committed Jun 20, 2019
1 parent 7f84a94 commit df24c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def _proto_gen_impl(ctx):
import_flags = ["-I."]

for dep in ctx.attr.deps:
import_flags += dep.proto.import_flags
deps += dep.proto.deps
import_flags += dep[ProtoInfo].import_flags
deps += dep[ProtoInfo].deps

if not ctx.attr.gen_cc and not ctx.attr.gen_py and not ctx.executable.plugin:
return struct(
Expand Down

0 comments on commit df24c78

Please sign in to comment.