Skip to content

Commit 0ca681b

Browse files
authored
Fix incompatibility with --incompatible_disable_starlark_host_transitions (#1275)
See bazelbuild/bazel#17032 Caught by bazelbuild/bazel-central-registry#4402 (comment)
1 parent 363b9b8 commit 0ca681b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bazel/protobuf.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ cc_proto_gen_validate = rule(
110110
default = [Label("@com_googlesource_code_re2//:re2")],
111111
),
112112
"_protoc": attr.label(
113-
cfg = "host",
113+
cfg = "exec",
114114
default = Label("@com_google_protobuf//:protoc"),
115115
executable = True,
116116
allow_single_file = True,
117117
),
118118
"_plugin": attr.label(
119-
cfg = "host",
119+
cfg = "exec",
120120
default = Label("@com_envoyproxy_protoc_gen_validate//:protoc-gen-validate"),
121121
allow_files = True,
122122
executable = True,
@@ -171,13 +171,13 @@ _java_proto_gen_validate_aspect = aspect(
171171
attr_aspects = ["deps"],
172172
attrs = {
173173
"_protoc": attr.label(
174-
cfg = "host",
174+
cfg = "exec",
175175
default = Label("@com_google_protobuf//:protoc"),
176176
executable = True,
177177
allow_single_file = True,
178178
),
179179
"_plugin": attr.label(
180-
cfg = "host",
180+
cfg = "exec",
181181
default = Label("@com_envoyproxy_protoc_gen_validate//:protoc-gen-validate"),
182182
allow_files = True,
183183
executable = True,

0 commit comments

Comments
 (0)