fix: skip global.json in wiki table loader
global.json uses position/injections format, not rows. The wiki loadWikiTables WalkDir was processing it as a 2DA table file and failing the rows-must-be-array check. global.json is handled by the native topdata path (native.go) after modules are applied. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -799,7 +799,7 @@ func loadWikiTables(root string) (map[string]wikiTable, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if d.IsDir() || !strings.EqualFold(filepath.Ext(path), ".json") || strings.EqualFold(filepath.Base(path), "lock.json") {
|
if d.IsDir() || !strings.EqualFold(filepath.Ext(path), ".json") || strings.EqualFold(filepath.Base(path), "lock.json") || strings.EqualFold(filepath.Base(path), "global.json") {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
obj, err := loadJSONObject(path)
|
obj, err := loadJSONObject(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user