helmfile/pkg/state
yxxhero 92205e827a fix: prevent duplicate isReleaseInstalled checks in DetectReleasesToBeDeletedForSync
When a release with 'installed: false' appears multiple times in the release list
(due to duplicate entries or being included via needs), the isReleaseInstalled
function was being called multiple times for the same release, resulting in
duplicate 'Listing releases' log messages.

This fix adds a deduplication check using a 'checked' map to ensure each release
is only checked once, preventing duplicate helm list calls and log messages.

This fixes the diff-args integration test where 'Listing releases matching
^uninstalled$' appeared twice in stderr output.

Signed-off-by: yxxhero <aiopsclub@163.com>
2026-03-18 08:25:32 +08:00
..
testdata
chart_dependencies_rewrite_test.go
chart_dependency.go fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
chart_dependency_test.go
create.go
create_test.go
diff_error_propagation_test.go
environment.go
envvals_loader.go
envvals_loader_test.go
helmx.go fix: use --force-replace flag for Helm 4 instead of deprecated --force (#2477) 2026-03-11 21:23:51 +08:00
helmx_test.go fix: use --force-replace flag for Helm 4 instead of deprecated --force (#2477) 2026-03-11 21:23:51 +08:00
issue_2297_test.go
issue_2355_test.go
issue_2444_test.go fix: pass --kubeconfig to chartify's helm template call (#2449) 2026-03-03 20:56:46 +08:00
oci_chart_lock_test.go
oci_chart_version_test.go
oci_parse_test.go
release.go
release_error.go
release_filters.go
release_filters_test.go
release_test.go
run_helm_dep_builds_skip_refresh_test.go fix: local chart with external dependencies error when repos configured (#2433) 2026-02-28 09:23:04 +08:00
selector_include_needs_test.go fix: log should show only releases matching selector, not including needs 2026-03-18 08:25:32 +08:00
selector_test.go fix: --include-needs should only include direct dependencies 2026-03-18 08:25:32 +08:00
skip_test.go
state.go fix: prevent duplicate isReleaseInstalled checks in DetectReleasesToBeDeletedForSync 2026-03-18 08:25:32 +08:00
state_exec_tmpl.go
state_exec_tmpl_test.go
state_gogetter_test.go
state_kubeversion_test.go
state_run.go fix: include-needs should only include direct dependencies, not transitive 2026-03-18 08:25:32 +08:00
state_test.go fix: --include-needs should only include direct dependencies 2026-03-18 08:25:32 +08:00
storage.go fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
storage_test.go
temp.go
temp_test.go feat: add --force-conflicts flag support for Helm 4 (#2480) 2026-03-14 08:44:44 +08:00
types.go
util.go
util_test.go