From cc7231a0560620fbbd27bf3db6d9cf2f05b65623 Mon Sep 17 00:00:00 2001 From: "Christopher A. Stelma" Date: Thu, 1 Mar 2018 14:59:56 -0800 Subject: [PATCH] pass home.Cache() to download since the index path is now relative finishes part3 of https://github.com/kubernetes/helm/pull/3327 --- cmd/helm/init.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index bd442e0c1..6ba0aaced 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -144,9 +144,7 @@ func initRepo(url, cacheFile string, out io.Writer, skipRefresh bool, home helmp 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, errors.Wrapf(err, "%s is not a valid chart repository or cannot be reached", url) }