mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-05 13:32:02 +02:00
Extract three focused helpers from the monolithic recursive walker: - parseLocalFileDeps: reads Chart.yaml, returns local file:// dep dirs. Pure data extraction, easy to test independently. - resolveFileDep: resolves a single file:// URL to an absolute dir path. Encapsulates the file:// prefix check + relative-to-absolute logic. - execHelmDep: thin wrapper around exec.Command that handles logging. Eliminates duplicated exec+log patterns between build and update. Simplify prebuildChartDeps (the recursive worker): it now reads "parse deps → recurse into each → build this chart" with no inline YAML parsing or path resolution noise. Net: -106/+83 lines, same behavior, all tests pass. Signed-off-by: yxxhero <aiopsclub@163.com>