helmfile/pkg/app/testdata/testapply_2
yxxhero d9f09fd218 fix: --include-needs should only include direct dependencies
Fixes #1003

Previously, --include-needs was incorrectly including transitive
dependencies (dependencies of dependencies). This fix ensures that:

- --include-needs only includes direct needs
- --include-transitive-needs includes both direct and transitive needs

Changes:
- Add separate handling for direct vs transitive needs in state.go
- Add IncludeNeeds field to ChartPrepareOptions
- Add unmarkNeedsDirectOnly() and collectDirectNeedsOnly() functions
- Update ForEachState and related functions to accept both flags
- Fix incorrect usage of c.IncludeNeeds() for IncludeTransitiveNeeds
- Update tests to verify the correct behavior

Signed-off-by: yxxhero <aiopsclub@163.com>
2026-03-16 08:23:03 +08:00
..
bad_--selector fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
deduplicate_by_--selector fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
include-transitive-needs=true fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
select_non_existent_release_with_--allow-no-matching-release fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
select_single_release_from_helmfile_with_two_duplicates fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
skip-needs=false_include-needs=true fix: --include-needs should only include direct dependencies 2026-03-16 08:23:03 +08:00
skip-needs=false_include-needs=true_but_no_diff_on_needed_release fix: --include-needs should only include direct dependencies 2026-03-16 08:23:03 +08:00
skip-needs=false_include-needs=true_with_installed_but_disabled_release fix: --include-needs should only include direct dependencies 2026-03-16 08:23:03 +08:00
skip-needs=false_include-needs=true_with_not_installed_and_disabled_release fix: --include-needs should only include direct dependencies 2026-03-16 08:23:03 +08:00
skip-needs=true fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00
skip-needs=true_with_no_diff_on_a_release fix: eliminate os.Chdir in sequential helmfiles to fix relative path resolution (#2410) 2026-02-22 09:21:46 +08:00