bazel: Get rid of exec_tools. (#13401)
Bazel has removed this attribute in bazelbuild/bazel@c061e57a7004a88eeb2f84d094d9a88b56c146b6.
Closes #13401
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13401 from benjaminp:exec_tools 9e718ff0fd11ff1fe70ed3e2536373792504c9c5
PiperOrigin-RevId: 552482730
diff --git a/build_defs/internal_shell.bzl b/build_defs/internal_shell.bzl
index 649184a..91628a5 100644
--- a/build_defs/internal_shell.bzl
+++ b/build_defs/internal_shell.bzl
@@ -32,7 +32,7 @@
native.genrule(
name = name + "_genrule",
srcs = srcs,
- exec_tools = tools,
+ tools = tools,
outs = [name + ".sh"],
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
visibility = ["//visibility:private"],
@@ -77,7 +77,7 @@
native.genrule(
name = name + "_genrule",
srcs = srcs,
- exec_tools = tools,
+ tools = tools,
outs = [name + ".sh"],
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
visibility = ["//visibility:private"],
diff --git a/src/google/protobuf/BUILD.bazel b/src/google/protobuf/BUILD.bazel
index aec8130..f2c8dd8 100644
--- a/src/google/protobuf/BUILD.bazel
+++ b/src/google/protobuf/BUILD.bazel
@@ -138,7 +138,7 @@
--proto_path=$$(dirname $$(dirname $$(dirname $(location any.proto)))) \
$(SRCS)
""",
- exec_tools = ["//:protoc"],
+ tools = ["//:protoc"],
visibility = ["//visibility:private"],
)