v0.x: the scaffold's go.mod is edited in place¶
Spec 0200.
What changed¶
go.modis edited, not re-rendered. Thego.modskeleton template and its manifest hash are gone.gtb generate project,regenerate project,enable,disable,setandattachopen the file withx/mod/modfile, add what is missing and write it back. Your ownrequire,exclude,retractandreplacelines, comments and tidy's indirect lines survive every run.- Direct requirements are seeded. For each module the generated tree imports that the running
gtbknows a version for (the framework atversion.gtb, an estate toolkit module, anything ingtb's own build info), arequireline is added when missing. A line already present is left at whatever version it holds. - An adapter line is dropped with its import.
gtb disable gitlabremoves thego/forge-gitlabline; only lines for modules the adapter tables can link are ever dropped. --no-verifyand a machine without Go keep every requirement. Before this, a regenerate with the toolchain absent leftgo.modwith norequireblock at all.GTB_FRAMEWORK_REPLACEstill adds the developmentreplace, and unsetting it removes thatreplaceon the next run. Areplaceyou wrote yourself is not touched.
What to do¶
Nothing, for a project that regenerates on a machine with Go: tidy runs as before and the result is byte-identical to what it was. The first regenerate on an existing project adds no line that tidy had not already resolved.
A manifest written before this carries a go.mod hash entry that nothing reads now; it is dropped
on the next regenerate.