- 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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| version | ||
| app.go | ||
| app_apply_hooks_test.go | ||
| app_apply_nokubectx_test.go | ||
| app_apply_test.go | ||
| app_diff_test.go | ||
| app_gethelm_test.go | ||
| app_lint_test.go | ||
| app_list_test.go | ||
| app_parallel_test.go | ||
| app_sequential_test.go | ||
| app_sync_test.go | ||
| app_template_test.go | ||
| app_test.go | ||
| app_unittest_test.go | ||
| ask.go | ||
| cleanup_hooks_error_test.go | ||
| config.go | ||
| constants.go | ||
| constants_test.go | ||
| context.go | ||
| context_test.go | ||
| dag_test.go | ||
| desired_state_file_loader.go | ||
| destroy_nokubectx_test.go | ||
| destroy_test.go | ||
| diff_nokubectx_test.go | ||
| diff_test.go | ||
| errors.go | ||
| errors_test.go | ||
| formatters.go | ||
| formatters_test.go | ||
| init.go | ||
| init_test.go | ||
| load_opts.go | ||
| load_opts_test.go | ||
| print_env.go | ||
| print_env_test.go | ||
| run.go | ||
| snapshot_test.go | ||
| two_pass_renderer.go | ||
| two_pass_renderer_test.go | ||
| validate_config.go | ||
| validate_config_test.go | ||