Files
helmfile/pkg
yxxhero 3dda0385e5 refactor: improve readability of preBuildTransitiveSubchartDeps
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>
2026-07-02 06:37:50 +08:00
..
…
…