fix: IncludeTransitiveNeeds should also enable WithDependencies in DAG planning
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
444c6cc869
commit
e5396d4b60
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue