helmfile/pkg/state
copilot-swe-agent[bot] afdb6ccdab fix: restore withNeeds DAG behavior and regenerate snapshots
- 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
2026-03-25 00:33:45 +00:00
..
testdata
chart_dependencies_rewrite_test.go
chart_dependency.go
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
helmx_test.go
issue_2297_test.go
issue_2355_test.go
issue_2444_test.go
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
selector_include_needs_test.go
selector_test.go test: add test case for both includeNeeds and includeTransitiveNeeds enabled 2026-03-24 23:30:57 +00:00
skip_test.go
state.go
state_exec_tmpl.go
state_exec_tmpl_test.go
state_gogetter_test.go
state_kubeversion_test.go
state_run.go fix: restore withNeeds DAG behavior and regenerate snapshots 2026-03-25 00:33:45 +00:00
state_test.go
storage.go
storage_test.go
temp.go
temp_test.go
types.go
util.go
util_test.go