Skip to content

Commit

Permalink
go_register_toolchains: update sdk_kinds (bazel-contrib#3511)
Browse files Browse the repository at this point in the history
* go_register_toolchains: update sdk_kinds

After 89e3296, we have renamed
_go_download_sdk to go_download_sdk_rule so that we could re-use the
implementation inside the Bazel Module Extension setup.

Update go_register_toolchains to pick up this change.

* Update sdk.bzl
  • Loading branch information
sluongng authored Apr 2, 2023
1 parent 941602a commit d756ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def go_register_toolchains(version = None, nogo = None, go_version = None, exper
if not version:
version = go_version # old name

sdk_kinds = ("_go_download_sdk", "_go_host_sdk", "_go_local_sdk", "_go_wrap_sdk")
sdk_kinds = ("go_download_sdk_rule", "go_host_sdk_rule", "_go_local_sdk", "_go_wrap_sdk")
existing_rules = native.existing_rules()
sdk_rules = [r for r in existing_rules.values() if r["kind"] in sdk_kinds]
if len(sdk_rules) == 0 and "go_sdk" in existing_rules:
Expand Down

0 comments on commit d756ad9

Please sign in to comment.