Skip to content

Commit e63456d

Browse files
committed
Fix bazel build
In recent bazel versions, `exec_tools` attribute has been removed from `genrule` cf. bazelbuild/bazel#19132
1 parent 4dfca95 commit e63456d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build_defs/internal_shell.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def inline_sh_binary(
3232
native.genrule(
3333
name = name + "_genrule",
3434
srcs = srcs,
35-
exec_tools = tools,
35+
tools = tools,
3636
outs = [name + ".sh"],
3737
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
3838
visibility = ["//visibility:private"],
@@ -77,7 +77,7 @@ def inline_sh_test(
7777
native.genrule(
7878
name = name + "_genrule",
7979
srcs = srcs,
80-
exec_tools = tools,
80+
tools = tools,
8181
outs = [name + ".sh"],
8282
cmd = "cat <<'EOF' >$(OUTS)\n#!/bin/bash -exu\n%s\nEOF\n" % cmd,
8383
visibility = ["//visibility:private"],

src/google/protobuf/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ genrule(
138138
--proto_path=$$(dirname $$(dirname $$(dirname $(location any.proto)))) \
139139
$(SRCS)
140140
""",
141-
exec_tools = ["//:protoc"],
141+
tools = ["//:protoc"],
142142
visibility = ["//visibility:private"],
143143
)
144144

0 commit comments

Comments
 (0)