diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 56f3664011..34fdeef915 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -49250,7 +49250,12 @@ function installLint(versionConfig) { repl = /\.zip$/; } else { - extractedDir = yield tc.extractTar(archivePath, process.env.HOME); + // We want to always overwrite files if the local cache already has them + const args = ["xz"]; + if (process.platform.toString() != "darwin") { + args.push("--overwrite"); + } + extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args); } const urlParts = assetURL.split(`/`); const dirName = urlParts[urlParts.length - 1].replace(repl, ``); diff --git a/dist/run/index.js b/dist/run/index.js index b1b86e1255..c00fef61a3 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -49260,7 +49260,12 @@ function installLint(versionConfig) { repl = /\.zip$/; } else { - extractedDir = yield tc.extractTar(archivePath, process.env.HOME); + // We want to always overwrite files if the local cache already has them + const args = ["xz"]; + if (process.platform.toString() != "darwin") { + args.push("--overwrite"); + } + extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args); } const urlParts = assetURL.split(`/`); const dirName = urlParts[urlParts.length - 1].replace(repl, ``); diff --git a/src/install.ts b/src/install.ts index 218c595c89..19b4df52ff 100644 --- a/src/install.ts +++ b/src/install.ts @@ -45,7 +45,12 @@ export async function installLint(versionConfig: VersionConfig): Promise extractedDir = await tc.extractZip(archivePath, process.env.HOME) repl = /\.zip$/ } else { - extractedDir = await tc.extractTar(archivePath, process.env.HOME) + // We want to always overwrite files if the local cache already has them + const args = ["xz"] + if (process.platform.toString() != "darwin") { + args.push("--overwrite") + } + extractedDir = await tc.extractTar(archivePath, process.env.HOME, args) } const urlParts = assetURL.split(`/`)