[MM-28885] app/plugin: check if plugin manifest has errors (#15630)

* app/plugin: dont sync plugins with errors

* reflect review comments

* update test

* Update plugin/environment_test.go

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>

* reflect review comments

* reflect review comments

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-10-07 10:23:59 +03:00
коммит произвёл GitHub
родитель 40371d8616
Коммит 1bf4373f3f
2 изменённых файлов: 73 добавлений и 1 удалений

Просмотреть файл

@@ -86,7 +86,8 @@ func scanSearchPath(path string) ([]*model.BundleInfo, error) {
if !file.IsDir() || file.Name()[0] == '.' {
continue
}
if info := model.BundleInfoForPath(filepath.Join(path, file.Name())); info.ManifestPath != "" {
info := model.BundleInfoForPath(filepath.Join(path, file.Name()))
if info.Manifest != nil {
ret = append(ret, info)
}
}