From cba5b725b8d62f9b8fba5d39bbb7ef7e2b9b8893 Mon Sep 17 00:00:00 2001 From: Iris Faey Hoffmeyer Date: Tue, 11 Aug 2020 15:38:00 -0400 Subject: [PATCH] Remove cargo bin if exists Fixes #6 --- src/download.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/download.ts b/src/download.ts index ba78d6a..9a6da71 100644 --- a/src/download.ts +++ b/src/download.ts @@ -113,6 +113,7 @@ export async function downloadFromCache( const cargoBinPath = binPath(); core.info(`Extracting files into ${cargoBinPath}`); + await fs.unlink(cargoBinPath + crate); await tc.extractZip(path, cargoBinPath); } catch (error) { core.warning(