Skip to content

Commit dd3898a

Browse files
committed
Await toolcache.downloadTool
1 parent 3d7016f commit dd3898a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/start-proxy.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,14 @@ export async function downloadProxy(
461461
try {
462462
// Download the proxy archive from `url`. We let `downloadTool` choose where
463463
// to store it. The path to the downloaded file will be returned if successful.
464-
return toolcache.downloadTool(url, /* dest: */ undefined, authorization, {
465-
accept: "application/octet-stream",
466-
});
464+
return await toolcache.downloadTool(
465+
url,
466+
/* dest: */ undefined,
467+
authorization,
468+
{
469+
accept: "application/octet-stream",
470+
},
471+
);
467472
} catch (error) {
468473
logger.error(
469474
`Failed to download proxy archive from ${url}: ${getErrorMessage(error)}`,

0 commit comments

Comments
 (0)