diff --git a/internal/config/rtfiles.go b/internal/config/rtfiles.go index 70ce4f04c6..2cd331acf5 100644 --- a/internal/config/rtfiles.go +++ b/internal/config/rtfiles.go @@ -207,7 +207,7 @@ func InitPlugins() { for _, f := range srcs { if strings.HasSuffix(f.Name(), ".lua") { p.Srcs = append(p.Srcs, realFile(filepath.Join(plugdir, d.Name(), f.Name()))) - } else if strings.HasSuffix(f.Name(), ".json") { + } else if f.Name() == "repo.json" { data, err := os.ReadFile(filepath.Join(plugdir, d.Name(), f.Name())) if err != nil { continue @@ -247,16 +247,6 @@ func InitPlugins() { for _, f := range srcs { if strings.HasSuffix(f, ".lua") { p.Srcs = append(p.Srcs, assetFile(filepath.Join(plugdir, d, f))) - } else if strings.HasSuffix(f, ".json") { - data, err := rt.Asset(filepath.Join(plugdir, d, f)) - if err != nil { - continue - } - p.Info, err = NewPluginInfo(data) - if err != nil { - continue - } - p.Name = p.Info.Name } } if !isID(p.Name) || len(p.Srcs) <= 0 {