Skip to content

Commit

Permalink
Merge pull request #5009 from Shopify/jc.set-overwrite-flag
Browse files Browse the repository at this point in the history
Fix dest already exists error by setting overwrite flag
  • Loading branch information
jeffcharles authored Dec 3, 2024
2 parents 55b65ec + a930bd6 commit 4721974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/cli/services/function/binaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {},
Expand Down

0 comments on commit 4721974

Please sign in to comment.