Fix panic when changing archetype files when servere is running

Fixes #12195
This commit is contained in:
Bjørn Erik Pedersen
2024-03-13 17:03:16 +01:00
parent e62675002e
commit 9ca1de09dd
2 changed files with 20 additions and 0 deletions

View File

@@ -792,6 +792,8 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf
// It's hard to determine the exact change set of this,
// so be very coarse grained for now.
changes = append(changes, identity.GenghisKhan)
case files.ComponentFolderArchetypes:
// Ignore for now.
default:
panic(fmt.Sprintf("unknown component: %q", pathInfo.Component()))
}