From 1b52f368dd8d3d5017c9daa1cf0612e19ba38874 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 9cfa30c97..c8eb3a7e6 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -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()) }