Skip to content

Commit

Permalink
Do not register a Go toolchain for ourselves
Browse files Browse the repository at this point in the history
This module can be used as a transitive dep, and so we want to
avoid forcing users to futz with their SDKs.
  • Loading branch information
shs96c committed Nov 12, 2022
1 parent 60abca8 commit 54c553f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions gazelle/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "gazelle", repo_name = "bazel_gazelle", version = "0.28.0")
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.35.0")

go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")

go_sdk.download(
name = "go_sdk",
version = "1.18",
)

use_repo(go_sdk, "go_sdk")

register_toolchains("@go_sdk//:all")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")

go_deps.module(
Expand Down

0 comments on commit 54c553f

Please sign in to comment.