From 85502d61d003e43db6e8447ab78e3eeda8fe4685 Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Tue, 23 Feb 2021 08:07:19 -0600 Subject: [PATCH] ignore macOS --- dist/post_run/index.js | 5 ++++- dist/run/index.js | 5 ++++- src/install.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 0ddf581..34fdeef 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -49251,7 +49251,10 @@ function installLint(versionConfig) { } else { // We want to always overwrite files if the local cache already has them - const args = ["xz", "--overwrite"]; + const args = ["xz"]; + if (process.platform.toString() != "darwin") { + args.push("--overwrite"); + } extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args); } const urlParts = assetURL.split(`/`); diff --git a/dist/run/index.js b/dist/run/index.js index 85e9982..c00fef6 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -49261,7 +49261,10 @@ function installLint(versionConfig) { } else { // We want to always overwrite files if the local cache already has them - const args = ["xz", "--overwrite"]; + const args = ["xz"]; + if (process.platform.toString() != "darwin") { + args.push("--overwrite"); + } extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args); } const urlParts = assetURL.split(`/`); diff --git a/src/install.ts b/src/install.ts index 3037e21..19b4df5 100644 --- a/src/install.ts +++ b/src/install.ts @@ -46,7 +46,10 @@ export async function installLint(versionConfig: VersionConfig): Promise repl = /\.zip$/ } else { // We want to always overwrite files if the local cache already has them - const args = ["xz", "--overwrite"] + const args = ["xz"] + if (process.platform.toString() != "darwin") { + args.push("--overwrite") + } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args) }