Skip to content

Commit

Permalink
fix(pulumi): fix process deps resolution
Browse files Browse the repository at this point in the history
A follow-up fix for #6226.
It returns the current task itself if the deps as skipped.
  • Loading branch information
vvagaytsev committed Jun 25, 2024
1 parent f12c8ab commit a9a4251
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/pulumi/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class PulumiPluginCommandTask extends PluginActionTask<PulumiDeploy, PulumiComma
*/
override resolveProcessDependencies() {
if (this.skipRuntimeDependencies) {
return []
return [this.getResolveTask(this.action)]
}

const pulumiDeployNames = this.graph
Expand All @@ -290,7 +290,7 @@ class PulumiPluginCommandTask extends PluginActionTask<PulumiDeploy, PulumiComma
})
.filter(isDeployAction)

const tasks = deps.map((action) => {
const depTasks = deps.map((action) => {
return new PulumiPluginCommandTask({
garden: this.garden,
graph: this.graph,
Expand All @@ -305,7 +305,7 @@ class PulumiPluginCommandTask extends PluginActionTask<PulumiDeploy, PulumiComma
})
})

return [this.getResolveTask(this.action), ...tasks]
return [this.getResolveTask(this.action), ...depTasks]
}

async getStatus() {
Expand Down

0 comments on commit a9a4251

Please sign in to comment.