fix: IncludeTransitiveNeeds should also enable WithDependencies in DAG planning

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2026-03-18 08:25:32 +08:00
committed by yxxhero
parent 9cf1c05f6d
commit 03e7338eae
+1 -1
View File
@@ -163,7 +163,7 @@ func GroupReleasesByDependency(releases []Release, opts PlanOptions) ([][]Releas
plan, err := d.Plan(dag.SortOptions{
Only: selectedReleaseIDs,
WithDependencies: opts.IncludeNeeds,
WithDependencies: opts.IncludeNeeds || opts.IncludeTransitiveNeeds,
WithoutDependencies: opts.SkipNeeds,
})
if err != nil {