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> |
||
|---|---|---|
| .. | ||
| bad_--selector | ||
| skip-needs=false_include-needs=true | ||
| skip-needs=false_include-needs=true_but_no_diff_on_needed_release | ||
| skip-needs=false_include-needs=true_with_installed_but_disabled_release | ||
| skip-needs=false_include-needs=true_with_not_installed_and_disabled_release | ||
| skip-needs=true | ||
| skip-needs=true_with_no_diff_on_a_release | ||