From 6c24d6be1e0b966933bf09b94b1f5d7fa7e5126c Mon Sep 17 00:00:00 2001 From: Rhys Koedijk Date: Fri, 27 Sep 2024 10:50:27 +1200 Subject: [PATCH] Run `go install dependabot` async so logs are streamed to task output instead of blocking until process has completed --- .../tasks/dependabotV2/utils/dependabot-cli/DependabotCli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/tasks/dependabotV2/utils/dependabot-cli/DependabotCli.ts b/extension/tasks/dependabotV2/utils/dependabot-cli/DependabotCli.ts index c786fdf1..d58c6a45 100644 --- a/extension/tasks/dependabotV2/utils/dependabot-cli/DependabotCli.ts +++ b/extension/tasks/dependabotV2/utils/dependabot-cli/DependabotCli.ts @@ -140,7 +140,7 @@ export class DependabotCli { console.info('Dependabot CLI install was not found, installing now with `go install dependabot`...'); const goTool: ToolRunner = tool(which('go', true)); goTool.arg(['install', this.toolImage]); - goTool.execSync(); + await goTool.execAsync(); // Depending on how Go is configured on the host agent, the "go/bin" path may not be in the PATH environment variable. // If dependabot still cannot be found using `which()` after install, we must manually resolve the path;