Skip to content

Commit

Permalink
Preserve compatibility with old versions of rules_go (#3)
Browse files Browse the repository at this point in the history
* Fix references to go_sdk rules

* Preserve backwards compat with old version of rules_go
  • Loading branch information
smocherla-brex authored Apr 12, 2023
1 parent 252ba16 commit 6d51727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repositories/go_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def go_deps():
excludes = native.existing_rules().keys()
# 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_rule", "go_host_sdk_rule", "_go_local_sdk", "_go_wrap_sdk")
sdk_kinds = ("_go_download_sdk", "_go_host_sdk", "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 6d51727

Please sign in to comment.