mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Ensure grafana cli can install multiple plugin dependencies (#91230)
* fix cli can only install one dep * handle error
This commit is contained in:
parent
796f2994f9
commit
d11f8c7bc3
@ -152,11 +152,14 @@ func doInstallPlugin(ctx context.Context, pluginID, version string, o pluginInst
|
||||
|
||||
for _, dep := range extractedArchive.Dependencies {
|
||||
services.Logger.Infof("Fetching %s dependency %s...", pluginID, dep.ID)
|
||||
return doInstallPlugin(ctx, dep.ID, dep.Version, pluginInstallOpts{
|
||||
err = doInstallPlugin(ctx, dep.ID, dep.Version, pluginInstallOpts{
|
||||
insecure: o.insecure,
|
||||
repoURL: o.repoURL,
|
||||
pluginDir: o.pluginDir,
|
||||
}, installing)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user