Skip to content

Commit

Permalink
fix(core): don't resolve disabled actions except when depended upon
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and thsig committed Jul 31, 2023
1 parent 036e189 commit afae714
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,12 @@ export class Garden {

async getResolvedConfigGraph(params: GetConfigGraphParams): Promise<ResolvedConfigGraph> {
const graph = await this.getConfigGraph(params)
const resolved = await this.resolveActions({ graph, actions: graph.getActions(), log: params.log })
const actions = graph.getActions()
const resolved = await this.resolveActions({
graph,
actions: actions.filter((a) => !a.isDisabled()),
log: params.log,
})
return new ResolvedConfigGraph({
actions: Object.values(resolved),
moduleGraph: graph.moduleGraph,
Expand Down

0 comments on commit afae714

Please sign in to comment.