mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
revert dir rename
This commit is contained in:
@@ -85,5 +85,10 @@ func ProxyDownload(path string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return mv.Version, os.Rename(filepath.Join(reposDir, lowerPath+"@"+mv.Version), filepath.Join(reposDir, path))
|
||||
err = os.Rename(filepath.Join(reposDir, path+"@"+mv.Version), filepath.Join(reposDir, path))
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return mv.Version, nil
|
||||
}
|
||||
|
||||
@@ -98,7 +98,8 @@ func newChecksResp(db *badger.DB, repo string, forceRefresh bool) (checksResp, e
|
||||
|
||||
ver, err := download.ProxyDownload(repo)
|
||||
if err != nil {
|
||||
return checksResp{}, fmt.Errorf("could not download repo: %v", err)
|
||||
log.Println("ERROR:", err)
|
||||
// return checksResp{}, fmt.Errorf("could not download repo: %v", err)
|
||||
}
|
||||
|
||||
// repo = repoRoot.Root
|
||||
|
||||
Reference in New Issue
Block a user