Load shipped categories before binding, panic on an index that misses a read, and name the index entry and unloaded category plainly

This commit is contained in:
2026-10-03 17:20:36 +02:00
committed by Lillem4n
parent 81bb979164
commit 8b3bbc4003
10 changed files with 70 additions and 85 deletions
+3 -3
View File
@@ -108,7 +108,7 @@ func New(opts ...Option) (*Generator, error) {
// mistake in that source is New's error.
func (c config) load() (folder, error) {
if c.shipped && len(c.sources) == 0 {
return shelve(), nil
return unloadedTree(), nil
}
var sources []dataSource
if c.shipped {
@@ -144,8 +144,8 @@ func paths(n node) []string {
out = append(out, join(name, p))
}
}
for name, c := range n.unloaded {
for _, p := range c.paths {
for name, e := range n.unloaded {
for _, p := range e.paths {
out = append(out, join(name, p))
}
}