mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
use lowercase target dir in proxy download
This commit is contained in:
@@ -85,7 +85,7 @@ func ProxyDownload(path string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
err = os.Rename(strings.ToLower(filepath.Join(reposDir, path+"@"+mv.Version)), filepath.Join(reposDir, path))
|
||||
err = os.Rename(strings.ToLower(filepath.Join(reposDir, path+"@"+mv.Version)), strings.ToLower(filepath.Join(reposDir, path)))
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user