helmfile/pkg
Shane Starcher 6673ebad84
fix: skip chartify for build command jsonPatches (#2212)
The build command is intended to be a read-only inspection command that
outputs the helmfile state. However, when releases use jsonPatches,
strategicMergePatches, or transformers, the chart preparation step
triggers chartify, which runs helm template and requires dependencies to
be built.

This causes two issues:
1. helm template is executed unnecessarily for a simple state inspection
2. Missing chart dependencies cause errors even with SkipDeps enabled

This change modifies PrepareCharts to filter out releases that require
chartify when the command is "build". These releases are excluded from
chart preparation, preventing helm template from being invoked.

The state output will still include these releases, but their charts
won't be processed during the build operation.

Signed-off-by: Shane Starcher <shanestarcher@gmail.com>
2025-10-05 07:39:54 +08:00
..
app fix typos in both comment and error message (#2199) 2025-09-26 15:46:53 -04:00
argparser
config
environment
envvar
errors
event
exectest
filesystem
hcllang
helmexec
maputil
plugins
policy
remote Migrate AWS SDK from v1 to v2 to resolve deprecation warnings (#2202) 2025-09-30 09:59:00 +08:00
runtime
state fix: skip chartify for build command jsonPatches (#2212) 2025-10-05 07:39:54 +08:00
testhelper
testutil
tmpl
yaml