create: Improve archetype directory discovery and tests

Updates #9146
This commit is contained in:
Bjørn Erik Pedersen 2021-11-12 10:29:13 +01:00
parent 057d02de25
commit 5f3f60898c
2 changed files with 18 additions and 2 deletions

View file

@ -252,7 +252,8 @@ func (b *contentBuilder) setArcheTypeFilenameToUse(ext string) {
if b.kind != "" {
pathsToCheck = append(pathsToCheck, b.kind+ext)
}
pathsToCheck = append(pathsToCheck, "default"+ext, "default")
pathsToCheck = append(pathsToCheck, "default"+ext)
for _, p := range pathsToCheck {
fi, err := b.archeTypeFs.Stat(p)