Overview of rules_go capabilities
masterThe rules_go project provides Bazel rules for Go development.
Supported features:
- Building libraries, binaries, and tests using
go_library,go_binary, andgo_test. - Go modules support via
go_deps. - Vendoring and cgo.
- Cross-compilation.
- Automatic
BUILDfile generation via Gazelle. - Build-time static code analysis via
nogo. - Protocol buffers support.
- Remote execution and coverage.
goplsintegration for editor support.
Limitations:
- C/C++ integration is limited to cgo (and SWIG).
Supported Platforms (Tested/Supported):
- Linux, macOS, Windows
- amd64, arm64
Requirements:
- Bazel ≥ 6.5.0 (required since version v0.51.0).
- Go SDK ≥ 1.18.