Fixes hard-coded linux based file-separator

Fixes https://github.com/kubernetes/helm/issues/2254
This commit is contained in:
Sushil Kumar
2017-04-10 16:47:38 -07:00
parent 9856c23459
commit 84fc5b776f

View File

@@ -56,8 +56,8 @@ func (h Home) Cache() string {
// CacheIndex returns the path to an index for the given named repository.
func (h Home) CacheIndex(name string) string {
target := fmt.Sprintf("repository/cache/%s-index.yaml", name)
return h.Path(target)
target := fmt.Sprintf("%s-index.yaml", name)
return h.Path("repository", "cache", target)
}
// Starters returns the path to the Helm starter packs.