go_module
Represents one checksum-bound vendored Go module.
go_dependencies generates these targets. They remain visible through target, dependency, and schema queries, but should not be declared manually.
Attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
module_path | string | yes | Canonical Go module path |
version | string | no | Selected module version |
checksum | string | no | Source checksum from a declared Go checksum file |
replacement_path | string | no | Replacement module or local path |
replacement_version | string | no | Replacement module version |
source_root | string | yes | Package-relative vendored module directory |
packages | list<string> | no | Vendored import paths owned by this module |
_go_locked | bool | resolver-owned | Proves that go_dependencies generated the target |
Providers and Capabilities
The target emits go_module and exposes build with no output group. Its provider includes the complete source tree as transitive build inputs.
