Skip to content

Commit 1986cb3

Browse files
feat: Add go-getter support to load base helmfiles (#1998)
Resolves #1193
1 parent 9efb7af commit 1986cb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/app/desired_state_file_loader.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ func (ld *desiredStateLoader) Load(f string, opts LoadOpts) (*state.HelmState, e
100100
}
101101

102102
func (ld *desiredStateLoader) loadFile(inheritedEnv *environment.Environment, baseDir, file string, evaluateBases bool) (*state.HelmState, error) {
103+
path, err := ld.remote.Locate(file)
104+
if err != nil {
105+
return nil, fmt.Errorf("locate: %v", err)
106+
}
107+
if file != path {
108+
ld.logger.Debugf("fetched remote \"%s\" to local cache \"%s\" and loading the latter...", file, path)
109+
}
110+
file = path
103111
return ld.loadFileWithOverrides(inheritedEnv, nil, baseDir, file, evaluateBases)
104112
}
105113

0 commit comments

Comments
 (0)