feat: helmfile -f <go-getter url> (#670)

Extends the remote-helmfile feature to also work when loading the first state file.
This should be useful for people who wants to give helmfile a try without ever opening `$EDITOR`.
This commit is contained in:
KUOKA Yusuke
2019-06-11 14:28:50 +09:00
committed by GitHub
parent 72425aebfc
commit 65d404b276
2 changed files with 17 additions and 17 deletions
+4
View File
@@ -179,6 +179,10 @@ func (r *Remote) Fetch(goGetterSrc string) (string, error) {
cacheDirPath := filepath.Join(r.Home, getterDst)
r.Logger.Debugf("home: %s", r.Home)
r.Logger.Debugf("getter dest: %s", getterDst)
r.Logger.Debugf("cached dir: %s", cacheDirPath)
{
if r.FileExists(cacheDirPath) {
return "", fmt.Errorf("%s is not directory. please remove it so that variant could use it for dependency caching", getterDst)