Skip to content

Commit 7b1c61b

Browse files
chrisirhcalexeagle
authored andcommitted
get the toolchain prioritzed
1 parent b9b08d9 commit 7b1c61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ protoc.toolchain(
3838
)
3939
use_repo(protoc, "com_google_protobuf", "toolchains_protoc_hub")
4040

41-
register_toolchains("@toolchains_protoc_hub//:all")
42-
4341
# NB: the `:all` here is critical, because `proto_lang_toolchain` expands into two targets:
4442
# - proto_lang_toolchain rule [name]
4543
# - toolchain rule [name]_toolchain
@@ -49,6 +47,8 @@ register_toolchains("@toolchains_protoc_hub//:all")
4947
# Declared toolchains should be created with the 'toolchain' rule and should not have dependencies that themselves require toolchains.
5048
register_toolchains("//tools/toolchains:all")
5149

50+
register_toolchains("@toolchains_protoc_hub//:all")
51+
5252
####### PYTHON ##########
5353
# Shows how a typical Python user fetches all the dependencies of their app, including the protobuf runtime
5454
dev_pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

0 commit comments

Comments
 (0)