Skip to content

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

AttributeTypeRequiredDescription
module_pathstringyesCanonical Go module path
versionstringnoSelected module version
checksumstringnoSource checksum from a declared Go checksum file
replacement_pathstringnoReplacement module or local path
replacement_versionstringnoReplacement module version
source_rootstringyesPackage-relative vendored module directory
packageslist<string>noVendored import paths owned by this module
_go_lockedboolresolver-ownedProves 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.

Released under an open-source license.