diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index adf61069..83695eed 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -111,6 +111,9 @@ async function getTarArgs( // Platform specific args if (tarPath.type === ArchiveToolType.GNU) { + // Make sure any existing files are overwritten + args.push('--overwrite') + switch (process.platform) { case 'win32': args.push('--force-local')