Эх сурвалжийг харах

Migrate to new `ctx.actions` API (#5367)

* Migrate to new `ctx.actions` API

This allows building with --incompatible_new_actions_api.

* Fix typo
Jon Brandvein 6 жил өмнө
parent
commit
7b28271a61
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      protobuf.bzl

+ 2 - 2
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,