- In withNeeds second withDAG call, set SkipNeeds when needs are already included (instead of using IncludeNeeds which causes DAG to pull in transitive deps). This is the key fix for --include-needs only including direct dependencies. - In GroupReleasesByDependency, use WithDependencies from opts.IncludeNeeds only when SelectedReleases is explicitly provided (withDAG path). When using the Filtered flag path, needs are already handled by markExcludedReleases. - Regenerate test snapshots to reflect correct behavior where --include-needs excludes transitive dependencies. - Restore diff_test.go and diff_nokubectx_test.go from main for non-include-needs test cases. Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com> Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/170cecc0-7a3e-4326-98d3-4f2bffee1848 |
||
|---|---|---|
| .. | ||
| bad_selector | ||
| fail_on_unselected_need_by_default | ||
| include-needs | ||
| include-needs_should_not_fail_on_disabled_direct_need | ||
| include-needs_should_not_fail_on_disabled_transitive_need | ||
| include-needs_with_include-transitive-needs_should_not_fail_on_disabled_direct_need | ||
| include-needs_with_include-transitive-needs_should_not_fail_on_disabled_transitive_need | ||
| include-transitive-needs | ||
| include-transitive-needs_should_not_fail_on_disabled_transitive_need | ||
| no-hooks | ||
| show-only | ||
| skip-needs | ||