Build modules: a restart ends the steps it left running, a step shows what it is, build_*_step_end ends one (issue 1890)

This commit is contained in:
2026-10-26 13:27:46 +01:00
parent 879600202a
commit 5fe5f26e7e
28 changed files with 85 additions and 19 deletions
@@ -74,3 +74,11 @@ func (m *Module) Puller(steps []StepTool, source buildstep.AskSource) *buildstep
func (m *Module) SeatTools(p *buildstep.Puller) []stdio.Tool {
return buildstep.SeatTools(Seat, "Node", p)
}
// StepEndTool ends one step left running (issue 1890); the module's steps state is the one it reads and writes.
const StepEndTool = "build_node_step_end"
// stepScan is the module's steps state as buildstep reads it.
func (m *Module) stepScan() buildstep.Scan {
return buildstep.Scan{Keys: m.ReadSteps.Keys, Get: m.ReadSteps.Get}
}