fix: IncludeTransitiveNeeds should also enable WithDependencies in DAG planning

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2026-03-15 14:03:55 +08:00
parent f269768473
commit cfdf71dd7f
1 changed files with 1 additions and 1 deletions

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 {