Explorar el Código

Move tool out of inputs in bazel config

This fixes compatibility with bazel when passing `--incompatible_no_support_tools_in_action_inputs` which will be flipped in an upcoming release.
Keith Smiley hace 6 años
padre
commit
ca3ead7745
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      protobuf.bzl

+ 2 - 1
protobuf.bzl

@@ -158,10 +158,11 @@ def _proto_gen_impl(ctx):
                 if generated_out != out.path:
                 if generated_out != out.path:
                     command += ";mv %s %s" % (generated_out, out.path)
                     command += ";mv %s %s" % (generated_out, out.path)
                 ctx.actions.run_shell(
                 ctx.actions.run_shell(
-                    inputs = inputs + [ctx.executable.protoc],
+                    inputs = inputs,
                     outputs = [out],
                     outputs = [out],
                     command = command,
                     command = command,
                     mnemonic = "ProtoCompile",
                     mnemonic = "ProtoCompile",
+                    tools = [ctx.executable.protoc],
                     use_default_shell_env = True,
                     use_default_shell_env = True,
                 )
                 )