Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exec_compatible_with to @go_sdk//:builder
go_tool_binary() is completely oblivious of toolchains. The reason being that Go toolchains actually depend on their output. Adding a toolchain dependency would thus add a cyclic dependency. This is problematic, because it means that the actions with mnemonic GoToolchainBinaryBuild end up getting scheduled on arbitrary workers. Address this by adding exec_compatible_with to the locations where go_tool_binary() is instantiated, namely the auto-generated BUILD files that are part of Go SDKs. Fixes: bazel-contrib#3942
- Loading branch information