提交 87a5e065 编写于 作者: yJunS's avatar yJunS

fix plugin download for jcli

上级 9fd21319
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
"strings"
) )
type PluginAPI struct { type PluginAPI struct {
...@@ -98,7 +99,7 @@ func (d *PluginAPI) DownloadPlugins(names []string) { ...@@ -98,7 +99,7 @@ func (d *PluginAPI) DownloadPlugins(names []string) {
fmt.Println("Start to collect plugin dependencies...") fmt.Println("Start to collect plugin dependencies...")
plugins := make([]PluginInfo, 0) plugins := make([]PluginInfo, 0)
for _, name := range names { 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)) fmt.Printf("Ready to download plugins, total: %d.\n", len(plugins))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册