Skip to main content

load_machine_tomls

Function load_machine_tomls 

Source
pub fn load_machine_tomls(
    workspace_root: &Path,
    mode: MachineLoadMode,
) -> Result<Vec<(PathBuf, MachineConfig)>>
Expand description

Every .yah/infra/machines/*.toml, paired with the path that declared it — every lint finding names the file the operator opens, and collate_workspace_ingress’s placement resolution has no use for the path but takes it anyway rather than forcing a second loader to exist.

Missing .yah/infra/machines/ is not an error — a fresh camp declares no nodes. Files are walked in sorted-filename order so callers that report findings (or resolve a first match) are deterministic across runs.