pass home.Cache() to download

since the index path is now relative

finishes part3 of https://github.com/kubernetes/helm/pull/3327
pull/4955/head
Christopher A. Stelma 8 years ago
parent d3c11668fa
commit cc7231a056

@ -144,9 +144,7 @@ func initRepo(url, cacheFile string, out io.Writer, skipRefresh bool, home helmp
return &c, nil return &c, nil
} }
// In this case, the cacheFile is always absolute. So passing empty string if err := r.DownloadIndexFile(home.Cache()); err != nil {
// is safe.
if err := r.DownloadIndexFile(""); err != nil {
return nil, errors.Wrapf(err, "%s is not a valid chart repository or cannot be reached", url) return nil, errors.Wrapf(err, "%s is not a valid chart repository or cannot be reached", url)
} }

Loading…
Cancel
Save