Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a unique name for the Go SDK that we use for ourselves
I'm not sure if this is the best way to solve this problem, but there are two cases where we want to use this repo: 1/ We're developing the repo itself. We should be responsible for registering the Go toolchain. 2/ We're being used transitively by another module (eg. `contrib_rules_jvm`. We should _not_ be responsible for registering the Go toolchain Now, in the ideal world, we'd declare the Go SDK as a dev dependency, and everything would be fine. However, we can't do this because there's no way to gate the call to `register_toolchain` on us being the root module or not. The workaround? Attempt to use a unique name for the Go SDK that we need and hope that this works as we think it does.
- Loading branch information