Skip to content

Commit 5e51126

Browse files
committed
Use incompatible_use_toolchain_transition
1 parent 7aa5c17 commit 5e51126

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scala_proto/private/scalapb_aspect.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,11 @@ scalapb_aspect = aspect(
246246
attrs = {
247247
"_protoc": attr.label(
248248
executable = True,
249-
cfg = "host",
249+
cfg = "exec",
250250
default = "@com_google_protobuf//:protoc",
251251
),
252252
},
253+
incompatible_use_toolchain_transition = True,
253254
toolchains = [
254255
"@io_bazel_rules_scala//scala:toolchain_type",
255256
"@io_bazel_rules_scala//scala_proto:toolchain_type",

scala_proto/scala_proto_toolchain.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ export_scalapb_toolchain_deps = rule(
7777
mandatory = True,
7878
),
7979
},
80+
incompatible_use_toolchain_transition = True,
8081
toolchains = ["@io_bazel_rules_scala//scala_proto:deps_toolchain_type"],
8182
)

0 commit comments

Comments
 (0)