Skip to content

Commit beb2bbc

Browse files
authored
Consider go_sdk.wrap for host compatible SDK (#4410)
**What type of PR is this?** Bug fix **What does this PR do? Why is it needed?** This was missed in #4300. **Which issues(s) does this PR fix?** Fixes #4408 **Other notes for review**
1 parent 70ad27d commit beb2bbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/private/extensions.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ def _go_sdk_impl(ctx):
218218
sdk_type = "remote",
219219
sdk_version = wrap_tag.version,
220220
))
221+
if (not wrap_tag.goos or wrap_tag.goos == host_detected_goos) and (not wrap_tag.goarch or wrap_tag.goarch == host_detected_goarch):
222+
first_host_compatible_toolchain = first_host_compatible_toolchain or "@{}//:ROOT".format(name)
221223

222224
additional_download_tags = []
223225

0 commit comments

Comments
 (0)