From 7b28271a61a3da0a37f6fda399b0c4c86464e5b3 Mon Sep 17 00:00:00 2001 From: Jon Brandvein Date: Thu, 15 Nov 2018 21:19:06 -0500 Subject: [PATCH] Migrate to new `ctx.actions` API (#5367) * Migrate to new `ctx.actions` API This allows building with --incompatible_new_actions_api. * Fix typo --- protobuf.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protobuf.bzl b/protobuf.bzl index b8ec0ee33d..88eeb87f14 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -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], @@ -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,