Skip to content

Commit

Permalink
bzlmod: Use register_toolchains (#3290)
Browse files Browse the repository at this point in the history
`toolchains_to_register` is deprecated.
  • Loading branch information
fmeum authored Sep 12, 2022
1 parent 5f81b37 commit 00846d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module(
repo_name = "io_bazel_rules_go",
version = "0.35.0",
compatibility_level = 0,
toolchains_to_register = [
"@go_default_sdk//:all",
],
)

print("WARNING: The rules_go Bazel module is still highly experimental and subject to change at any time. Only use it to try out bzlmod for now.")
Expand All @@ -24,6 +21,7 @@ use_repo(
go_sdk = use_extension("//go:extensions.bzl", "go_sdk")
go_sdk.download(name = "go_default_sdk", version = "1.18.3")
use_repo(go_sdk, "go_default_sdk")
register_toolchains("@go_default_sdk//:all")

bazel_dep(name = "gazelle", version = "0.26.0")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
Expand Down

0 comments on commit 00846d9

Please sign in to comment.