go_resolved_graph
Resolver-owned settled Go module graph. Provisional version choices never produce this target.
go_module_resolution and
go_workspace generate the target. It writes
resolution.json with the settled selection and graph metadata. When update
proposals are enabled, it also writes native file copies beneath proposed
and a transaction.json describing an explicit guarded source update.
Building, querying or restoring cached outputs never applies that transaction.
Attributes#
| Attribute | Type | Default | Description |
|---|---|---|---|
resolution | string | required | Resolver-produced JSON encoding of the settled graph |
proposed_files | map<string,string> | {} | Workspace-relative native file paths mapped to proposed text |
source_guards | string | "{}" | JSON preconditions derived from the original files and observed absences |
source_directories | string | "[]" | JSON shallow-directory membership guards for import-derived updates |
_default_test_roots | list<string> | [] | Resolver-owned generated test roots for graph selection |
These attributes are generated records, not a stable hand-authored graph format.
The deps role accepts go_package providers. The target emits go_resolution,
including the resolution output path, and exposes build with the default
output group.
See Go requirement previews for publication commands, preserved native formats and unsupported update semantics.