Skip to content

Commit

Permalink
Fix references to go_sdk rules (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
smocherla-brex authored Apr 12, 2023
1 parent 5210653 commit 252ba16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repositories/go_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def go_deps():
already.
"""
excludes = native.existing_rules().keys()
# go_register_toolchains can only be called once
# go_register_toolchains can only be called once with the default SDK
# so we check that we only call it if it hasn't been before
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:
Expand Down

0 comments on commit 252ba16

Please sign in to comment.