pass home.Cache() to download

since the index path is now relative

finishes part3 of https://github.com/kubernetes/helm/pull/3327
pull/3647/head
Christopher A. Stelma 8 years ago
parent 8451e81aaa
commit 1b52f368dd

@ -409,9 +409,7 @@ func initStableRepo(cacheFile string, out io.Writer, skipRefresh bool, home helm
return &c, nil
}
// In this case, the cacheFile is always absolute. So passing empty string
// is safe.
if err := r.DownloadIndexFile(""); err != nil {
if err := r.DownloadIndexFile(home.Cache()); err != nil {
return nil, fmt.Errorf("Looks like %q is not a valid chart repository or cannot be reached: %s", stableRepositoryURL, err.Error())
}

Loading…
Cancel
Save