fix: withNeeds should use IncludeTransitiveNeeds config
The withNeeds function was always calling getSelectedReleases(r, false) which didn't include transitive needs. This caused --include-transitive-needs to not work correctly. Now it correctly passes c.IncludeTransitiveNeeds() to getSelectedReleases. Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
84aca06422
commit
a8a0072fe4
|
|
@ -2292,7 +2292,7 @@ func (a *App) template(r *Run, c TemplateConfigProvider) (bool, []error) {
|
|||
func (a *App) withNeeds(r *Run, c DAGConfig, includeDisabled bool, f func(*state.HelmState) []error) (bool, []error) {
|
||||
st := r.state
|
||||
|
||||
selectedReleases, deduplicated, err := a.getSelectedReleases(r, false)
|
||||
selectedReleases, deduplicated, err := a.getSelectedReleases(r, c.IncludeTransitiveNeeds())
|
||||
if err != nil {
|
||||
return false, []error{err}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue