|
|
|
@ -362,7 +362,7 @@ func ensureDefaultRepos(home helmpath.Home, out io.Writer, skipRefresh bool) err
|
|
|
|
|
if fi, err := os.Stat(repoFile); err != nil {
|
|
|
|
|
fmt.Fprintf(out, "Creating %s \n", repoFile)
|
|
|
|
|
f := repo.NewRepoFile()
|
|
|
|
|
sr, err := initStableRepo(home.CacheIndex(stableRepository), out, skipRefresh)
|
|
|
|
|
sr, err := initStableRepo(home.CacheIndex(stableRepository), out, skipRefresh, home)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
@ -381,7 +381,7 @@ func ensureDefaultRepos(home helmpath.Home, out io.Writer, skipRefresh bool) err
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func initStableRepo(cacheFile string, out io.Writer, skipRefresh bool) (*repo.Entry, error) {
|
|
|
|
|
func initStableRepo(cacheFile string, out io.Writer, skipRefresh bool, home helmpath.Home) (*repo.Entry, error) {
|
|
|
|
|
fmt.Fprintf(out, "Adding %s repo with URL: %s \n", stableRepository, stableRepositoryURL)
|
|
|
|
|
c := repo.Entry{
|
|
|
|
|
Name: stableRepository,
|
|
|
|
|