From a930bd6148ee9edec5ec0bb99728dba1533d9648 Mon Sep 17 00:00:00 2001 From: Jeff Charles Date: Tue, 3 Dec 2024 11:20:38 -0500 Subject: [PATCH] Fix dest already exists error by setting overwrite flag --- packages/app/src/cli/services/function/binaries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/cli/services/function/binaries.ts b/packages/app/src/cli/services/function/binaries.ts index 034d28e18f..153e143f42 100644 --- a/packages/app/src/cli/services/function/binaries.ts +++ b/packages/app/src/cli/services/function/binaries.ts @@ -164,7 +164,7 @@ export async function downloadBinary(bin: DownloadableBinary) { const outputStream = createFileWriteStream(tmpFile) await bin.processResponse(responseStream, outputStream) await chmod(tmpFile, 0o775) - await moveFile(tmpFile, bin.path) + await moveFile(tmpFile, bin.path, {overwrite: true}) }) }, async () => {},