Refuse an unmet seat dependency the catalogue could meet (hq ADR 0207 §4)
status reported no unmet dependency on any node once systemd, pacman and docker were assigned to all four (to-be 42), which is the condition ADR 0207 set for the switch. A dependency no catalogue module could meet stays a report before and after the switch, as assign already said it: there is no remedy to name.
This commit is contained in:
@@ -675,9 +675,14 @@ func Resolve(catalogue map[string]Manifest, assigned []string, node Node, world
|
||||
// Reported until the switch; refused after it, though never in the first pass, whose refusals
|
||||
// make a machine vanish from the network rather than report anything.
|
||||
resolution.Unheld = UnheldDependencies(catalogue, node.Name, resolution.Modules, nil)
|
||||
// Only a dependency some module in the catalogue could meet is refused: one with no possible
|
||||
// holder has no remedy to name, and stays a report in `status` (novox/hq ADR 0207 §4, read with
|
||||
// the assign rule above it).
|
||||
if enforceSeatDependencies && !world.Unchecked {
|
||||
for _, u := range resolution.Unheld {
|
||||
problems = append(problems, u.String())
|
||||
if len(u.Holders) > 0 {
|
||||
problems = append(problems, u.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user