diff --git a/core/src/actions/base.ts b/core/src/actions/base.ts index eba3c628d6..a54a437fee 100644 --- a/core/src/actions/base.ts +++ b/core/src/actions/base.ts @@ -481,8 +481,8 @@ export abstract class BaseAction< return this.dependencies } - getDependencies(): Action[] { - return this.dependencies.map((d) => this.graph.getActionByRef(d)) + getDependencies(opts?: GetActionOpts): Action[] { + return this.dependencies.map((d) => this.graph.getActionByRef(d, opts)) } hasDependency(refOrString: string | ActionReference) { diff --git a/core/src/commands/get/get-actions.ts b/core/src/commands/get/get-actions.ts index 7f7e91ee1d..5c81cd3e91 100644 --- a/core/src/commands/get/get-actions.ts +++ b/core/src/commands/get/get-actions.ts @@ -198,7 +198,7 @@ export class GetActionsCommand extends Command { ...tmp, path: getRelativeActionConfigPath(garden.projectRoot, a), dependencies: a - .getDependencies() + .getDependencies({ includeDisabled: true }) .map((d) => d.key()) .sort(), dependents: graph