From 252ba16df60bf0c9f191d84d0ba39c0e7d6546fa Mon Sep 17 00:00:00 2001 From: Sridhar Mocherla Date: Wed, 12 Apr 2023 11:01:14 -0400 Subject: [PATCH] Fix references to go_sdk rules (#2) --- repositories/go_repositories.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repositories/go_repositories.bzl b/repositories/go_repositories.bzl index 5a8428e7b..9234b933c 100644 --- a/repositories/go_repositories.bzl +++ b/repositories/go_repositories.bzl @@ -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: