package release

Import Path
	go.pact.im/x/goship/internal/release (on go.dev)

Dependency Relation
	imports 19 packages, and imported by 2 packages

Involved Source Files Package release plans and executes layered multi-module Go releases. Planning and inspection (InspectSnapshot, PlanFromSnapshot) are pure functions over an immutable Snapshot. All VCS I/O is isolated in CollectSnapshot and Execute. execute.go plan.go snapshot.go
Package-Level Type Names (total 20, all are exported)
/* sort exporteds by: | */
CommitRecord records a dependency-update commit created during a release. Files []string ID string Layer int Message string
CommitTemplateData is passed to CommitTemplate when rendering layer commit messages. Deps []DepBump Layer int Modules []string Revision vcs.Revision UpdatedDeps []string VCS string
DepBump describes a single dependency version bump included in a commit. Module string Tag string Version string
ExecuteOptions configures execution of a validated Plan. OnStep func(event StepEvent) Push bool Remote string VCS vcs.VCS func Execute(ctx context.Context, plan *Plan, opts ExecuteOptions) (*Result, error)
Inspection holds the result of inspecting a repository’s Go modules. Discovery string Layers [][]ModuleStatus Revision vcs.Revision Skipped []SkippedInfo VCS string func Inspect(ctx context.Context, opts InspectOptions) (*Inspection, error) func InspectSnapshot(snap *Snapshot, filter modgraph.FilterOptions) (*Inspection, error) func go.pact.im/x/goship/internal/ui.(*Renderer).RenderDiff(ins *Inspection, format ui.Format) error func go.pact.im/x/goship/internal/ui.(*Renderer).RenderGraph(ins *Inspection, format ui.Format) error func go.pact.im/x/goship/internal/ui.(*Renderer).RenderList(ins *Inspection, format ui.Format) error
InspectOptions configures repository module inspection (for list, graph, and diff). APIDiff bool Filter modgraph.FilterOptions Rev string VCS vcs.VCS Workspace workspace.Loader func Inspect(ctx context.Context, opts InspectOptions) (*Inspection, error)
LayerPlan describes a single topological layer of a release. CommitMessage string Index int Modules []ModulePlan
ModuleChange summarizes VCS change state for a module since its latest tag. APIDiff *apidiff.ModuleDiff Changed bool ChangedFiles int LatestTag string LatestVer string
ModulePlan describes the planned release of a single module. APIDiff *apidiff.ModuleDiff Changed bool ChangedFiles int Deps []string Dir string Path string PreviousTag string PreviousVersion string Tag string TagMessage string TargetVersion string Warnings []string
ModuleStatus describes the current VCS and dependency state of a module. APIDiff *apidiff.ModuleDiff Changed bool ChangedFiles int Deps []string Dir string LatestTag string LatestVer string Layer int Path string SuggestedBump version.BumpKind
Plan is the immutable, validated release execution plan. Discovery string Layers []LayerPlan Revision vcs.Revision Skipped []SkippedInfo TotalCommits int TotalModules int TotalTags int VCS string Warnings []string func BuildPlan(ctx context.Context, opts PlanOptions) (*Plan, error) func PlanFromSnapshot(snap *Snapshot, opts PlanSpec) (*Plan, error) func Execute(ctx context.Context, plan *Plan, opts ExecuteOptions) (*Result, error) func go.pact.im/x/goship/internal/ui.(*Renderer).RenderPlan(plan *Plan, format ui.Format) error func go.pact.im/x/goship/internal/ui.(*Renderer).RenderResult(plan *Plan, res *Result, format ui.Format) error
PlanOptions configures release planning. ChangedOnly bool Check config.CheckMode CommitTemplate string Filter modgraph.FilterOptions Overrides map[string]string Rev string SkipExisting bool Spec version.Spec TagTemplate string VCS vcs.VCS WithDependents bool Workspace workspace.Loader func BuildPlan(ctx context.Context, opts PlanOptions) (*Plan, error)
PlanSpec holds all pure parameters needed to compute a Plan from a Snapshot. ChangedOnly bool Check config.CheckMode CommitTemplate string Filter modgraph.FilterOptions Overrides map[string]string SkipExisting bool Spec version.Spec TagTemplate string WithDependents bool func PlanFromSnapshot(snap *Snapshot, opts PlanSpec) (*Plan, error)
Result summarizes a completed release execution. Commits []CommitRecord Publish vcs.PublishResult Pushed bool Remote string func Execute(ctx context.Context, plan *Plan, opts ExecuteOptions) (*Result, error) func go.pact.im/x/goship/internal/ui.(*Renderer).RenderResult(plan *Plan, res *Result, format ui.Format) error
SkippedInfo records a module excluded from inspection or release. Dir string Path string Reason string
Snapshot is an immutable, I/O-free capture of repository state at a revision. // keyed by module path Discovery string Modules []*modgraph.Module Revision vcs.Revision Tags []string VCS string func CollectSnapshot(ctx context.Context, opts SnapshotOptions) (*Snapshot, error) func InspectSnapshot(snap *Snapshot, filter modgraph.FilterOptions) (*Inspection, error) func PlanFromSnapshot(snap *Snapshot, opts PlanSpec) (*Plan, error)
SnapshotOptions configures VCS and workspace I/O for CollectSnapshot. APIDiff bool Filter modgraph.FilterOptions Rev string VCS vcs.VCS Workspace workspace.Loader func CollectSnapshot(ctx context.Context, opts SnapshotOptions) (*Snapshot, error)
StepEvent reports progress during Execute. Commit string Kind StepKind Layer int Message string Module string Tag string func go.pact.im/x/goship/internal/ui.(*Renderer).RenderStep(ev StepEvent)
StepKind identifies a lifecycle event emitted during Execute. const StepChecksum const StepCommit const StepPublish const StepPush const StepTag
TagTemplateData is passed to TagTemplate when rendering tag messages. APIDiff *apidiff.ModuleDiff Dir string Module string PreviousTag string PreviousVersion string Revision vcs.Revision Tag string VCS string Version string
Package-Level Functions (total 15, in which 6 are exported)
BuildPlan collects a Snapshot and delegates to the pure PlanFromSnapshot.
CollectSnapshot performs all read-only VCS and workspace I/O required to construct an immutable Snapshot.
Execute runs plan inside an isolated VCS session, computing module checksums locally through sess.FS() and publishing commits and tags atomically at the end. Execute performs no direct os/filepath I/O.
Inspect collects a Snapshot and delegates to the pure InspectSnapshot.
InspectSnapshot is a pure function that filters snap.Modules, builds the layered dependency graph, and produces an Inspection.
PlanFromSnapshot is a pure function that validates all preconditions and builds a layered release Plan from snap without performing any I/O.
Package-Level Constants (total 5, all are exported)
Supported lifecycle event kinds emitted during Execute.
Supported lifecycle event kinds emitted during Execute.
Supported lifecycle event kinds emitted during Execute.
Supported lifecycle event kinds emitted during Execute.
Supported lifecycle event kinds emitted during Execute.