Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go_local_sdk: more strict SDK platform detection (#2765)
We determine the "SDK platform" by looking at the goos_goarch subdirectory of pkg/tool. If the goroot has actually built the toolchain for multiple platforms, then we just pick the first one and potentially fail cryptically later. Ideally, we would simply register toolchains for all of the host platforms we find, but that is likely a much larger change. Until then, provide a much clearer error message that we don't like finding multiple platforms. Fixes #2764
- Loading branch information