bazel-contrib / bazel-contrib/rules_go
How to set two go_download_sdk rules and switch between them
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 762
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
We have two versions of Golang: the official version and a modified/packaged version. For example, we need to use the ```bazel --patchgo``` command to compile a service using the modified/packaged version of Golang, and if the ```--patchgo``` command is not used, we need to use the official version of Golang to compile the service. How can we configure this?
Contributor guide
Research direction
Start by reviewing how rules_go exposes go_download_sdk configuration and how the bazel --patchgo invocation is expected to select a toolchain. Reproduce the official-versus-modified Go scenario, then document a supported configuration or clearly state that this switching behavior is not supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100