Skip to content

Commit

Permalink
Migrate to new ctx.actions API (#5367)
Browse files Browse the repository at this point in the history
* Migrate to new `ctx.actions` API

This allows building with --incompatible_new_actions_api.

* Fix typo
  • Loading branch information
brandjon authored and acozzette committed Nov 16, 2018
1 parent 29747f4 commit 7b28271
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 @@ -132,7 +132,7 @@ def _proto_gen_impl(ctx):
inputs += [plugin]

if not in_gen_dir:
ctx.action(
ctx.actions.run(
inputs=inputs,
outputs=outs,
arguments=args + import_flags + [src.path],
Expand All @@ -154,7 +154,7 @@ def _proto_gen_impl(ctx):
generated_out = '/'.join([gen_dir, out.basename])
if generated_out != out.path:
command += ";mv %s %s" % (generated_out, out.path)
ctx.action(
ctx.actions.run_shell(
inputs=inputs + [ctx.executable.protoc],
outputs=[out],
command=command,
Expand Down

0 comments on commit 7b28271

Please sign in to comment.