Rename mesh-control -> mesh-controller, substrate -> foundation
One name per thing, per the HQ glossary: the module/container/image/binary/repo becomes mesh-controller, the seat the-controller, and the store+broker pair the foundation (embedded base bundles, default template and example lock renamed with their go:embed directives). No behaviour change — a pure vocabulary rename. Claude-Session: https://claude.ai/code/session_01D6qtiYU3P9jk3pnAXyAFyx
This commit is contained in:
@@ -26,7 +26,7 @@ func Preflight(ctx context.Context, o Options, d Deps, say func(string)) ([]byte
|
||||
// 1. Does this installer carry what it claims to?
|
||||
//
|
||||
// Asked before the machine is touched, for the same reason `mesh-host bundle` exists: a host
|
||||
// that carries no substrate must say so when somebody asks, not on a first node
|
||||
// that carries no foundation must say so when somebody asks, not on a first node
|
||||
// (internal/bundle). An installer built without an image would otherwise get a machine as far
|
||||
// as a running store and a running broker and stop.
|
||||
if image.IsEmpty() {
|
||||
@@ -67,13 +67,13 @@ func Preflight(ctx context.Context, o Options, d Deps, say func(string)) ([]byte
|
||||
}
|
||||
say(fmt.Sprintf(" builder %s carried (the archive calls it %s)", tag, carriedID))
|
||||
|
||||
// 2. Is the template there, and is it a substrate?
|
||||
// 2. Is the template there, and is it a foundation?
|
||||
template, err := os.ReadFile(o.Template)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf(
|
||||
"the bundle template could not be read: %w\n"+
|
||||
"It is what this machine will be asked to be, so there is nothing to do without "+
|
||||
"it. Point --bundle at one; mesh-host's examples/substrate-first-node.lock is "+
|
||||
"it. Point --bundle at one; mesh-host's examples/foundation-first-node.lock is "+
|
||||
"the shape", err)
|
||||
}
|
||||
// Parsed here as well as at the rewrite, because a template that is not a declaration should
|
||||
@@ -120,7 +120,7 @@ func Preflight(ctx context.Context, o Options, d Deps, say func(string)) ([]byte
|
||||
// with the id of the image this installer carries. Whatever the slot held is therefore never
|
||||
// pulled, never fetched, and never reached; requiring it to be reachable refuses a correct
|
||||
// install because of a string that is about to be thrown away. Found on the first real run: the
|
||||
// lab's template still carried `192.0.2.250:5000/mesh-control@…`, the address of a registry that
|
||||
// lab's template still carried `192.0.2.250:5000/mesh-controller@…`, the address of a registry that
|
||||
// no longer exists, and preflight timed out dialling it.
|
||||
for _, host := range registriesIn(parsed) {
|
||||
dialing, cancel := context.WithTimeout(ctx, o.Timeout)
|
||||
|
||||
Reference in New Issue
Block a user