Let a re-run of genesis find the package registry it raised itself under its own name (hq ADR 0100)
This commit is contained in:
@@ -385,6 +385,12 @@ func NamesFree(ctx context.Context, run Runner, names []string, known store.Stat
|
||||
if known.Recorded(string(declaration.TypeContainer), name) {
|
||||
continue
|
||||
}
|
||||
if name == giteaBootstrap && len(known.Resources) > 0 {
|
||||
// Genesis raises the package registry itself, by hand and before the host records
|
||||
// anything of it, so on a re-run it is found under its own name with no label and no
|
||||
// record. A machine that carries what an earlier genesis raised made it.
|
||||
continue
|
||||
}
|
||||
taken = append(taken, name)
|
||||
}
|
||||
if len(taken) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user