bazel: Get rid of exec_tools.

Bazel has removed this attribute in bazelbuild/bazel@c061e57a7004a88eeb2f84d094d9a88b56c146b6.
pull/13401/head
Benjamin Peterson 1 year ago
parent 56693aa588
commit 9e718ff0fd
  1. 4
      build_defs/internal_shell.bzl
  2. 2
      objectivec/BUILD.bazel
  3. 2
      src/google/protobuf/BUILD.bazel

@ -32,7 +32,7 @@ def inline_sh_binary(
native.genrule( native.genrule(
name = name + "_genrule", name = name + "_genrule",
srcs = srcs, srcs = srcs,
exec_tools = tools, tools = tools,
outs = [name + ".sh"], outs = [name + ".sh"],
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd, cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
@ -77,7 +77,7 @@ def inline_sh_test(
native.genrule( native.genrule(
name = name + "_genrule", name = name + "_genrule",
srcs = srcs, srcs = srcs,
exec_tools = tools, tools = tools,
outs = [name + ".sh"], outs = [name + ".sh"],
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd, cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
visibility = ["//visibility:private"], visibility = ["//visibility:private"],

@ -42,7 +42,7 @@ genrule(
for wkt in _OBJC_WKT_NAMES for wkt in _OBJC_WKT_NAMES
for ext in _OBJC_EXTS for ext in _OBJC_EXTS
]), ]),
exec_tools = ["//:protoc"], tools = ["//:protoc"],
tags = ["manual"], tags = ["manual"],
) )

@ -139,7 +139,7 @@ genrule(
--proto_path=$$(dirname $$(dirname $$(dirname $(location any.proto)))) \ --proto_path=$$(dirname $$(dirname $$(dirname $(location any.proto)))) \
$(SRCS) $(SRCS)
""", """,
exec_tools = ["//:protoc"], tools = ["//:protoc"],
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
) )

Loading…
Cancel
Save