go_package_dependencies
Resolver-owned dependency inputs for one Go package consumer.
go_workspace generates these targets after
settled module selection and offline package evaluation. Ordinary Go package
targets consume their go_dependency_set provider; do not hand-author the
serialized resolver state.
For downloaded modules, the target assembles a consumer-scoped native-layout
gomodcache from authenticated go_module
outputs. It includes separately authenticated module manifests rather than
substituting a source archive's go.mod. Local replacements and workspace
members contribute their selected source files. Vendoring uses the native
vendor tree and its consistency metadata instead of constructing a module cache.
The consumer depends on its needed modules, not every archive in the settled graph. Its compilation can therefore start while unrelated downloads continue. These per-consumer views are graph outputs, not shared mutable global caches.
Attributes#
| Attribute | Type | Default | Description |
|---|---|---|---|
state | string | required | Resolver-produced JSON describing selected sources, native manifests, checksum files and cache metadata |
local_sources | list<string> | [] | Workspace-relative local dependency files selected for this consumer |
Provider and capability#
The deps role accepts go_module providers. The target emits
go_dependency_set with the module root, native manifest/workspace/checksum
paths, assembled cache or vendor location, and transitive source inputs.
It exposes build with the default output group.
This target assembles already selected dependencies. It neither selects versions
nor edits go.mod, go.sum or go.work.