From 87a5e065636fac135dc7ad2eb84178333570e743 Mon Sep 17 00:00:00 2001 From: yJunS Date: Sun, 18 Aug 2019 13:05:38 +0800 Subject: [PATCH] fix plugin download for jcli --- client/pluginApi.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pluginApi.go b/client/pluginApi.go index 28221ef..edf00a0 100644 --- a/client/pluginApi.go +++ b/client/pluginApi.go @@ -6,6 +6,7 @@ import ( "io/ioutil" "log" "net/http" + "strings" ) type PluginAPI struct { @@ -98,7 +99,7 @@ func (d *PluginAPI) DownloadPlugins(names []string) { fmt.Println("Start to collect plugin dependencies...") plugins := make([]PluginInfo, 0) for _, name := range names { - plugins = append(plugins, d.collectDependencies(name)...) + plugins = append(plugins, d.collectDependencies(strings.ToLower(name))...) } fmt.Printf("Ready to download plugins, total: %d.\n", len(plugins)) -- GitLab