From 6d517276fc3e42d55577a9cd05ba99779595ea95 Mon Sep 17 00:00:00 2001 From: Sridhar Mocherla Date: Wed, 12 Apr 2023 11:05:16 -0400 Subject: [PATCH] Preserve compatibility with old versions of rules_go (#3) * Fix references to go_sdk rules * Preserve backwards compat with old version of rules_go --- repositories/go_repositories.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repositories/go_repositories.bzl b/repositories/go_repositories.bzl index 9234b933c..232d3d00d 100644 --- a/repositories/go_repositories.bzl +++ b/repositories/go_repositories.bzl @@ -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: