removes dependencies install for plugins

this features was never intended for production.
This commit is contained in:
bergquist
2018-02-14 15:40:42 +01:00
parent 56907eef69
commit 47e363ea15
3 changed files with 3 additions and 23 deletions
@@ -91,14 +91,7 @@ func InstallPlugin(pluginName, version string, c CommandLine) error {
}
logger.Infof("%s Installed %s successfully \n", color.GreenString("✔"), pluginName)
res, _ := s.ReadPlugin(pluginFolder, pluginName)
for _, v := range res.Dependencies.Plugins {
InstallPlugin(v.Id, version, c)
logger.Infof("Installed dependency: %v ✔\n", v.Id)
}
return err
return nil
}
func SelectVersion(plugin m.Plugin, version string) (m.Version, error) {
+1 -2
View File
@@ -14,8 +14,7 @@ type InstalledPlugin struct {
}
type Dependencies struct {
GrafanaVersion string `json:"grafanaVersion"`
Plugins []Plugin `json:"plugins"`
GrafanaVersion string `json:"grafanaVersion"`
}
type PluginInfo struct {