mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 15:38:28 +00:00
ignore macOS
This commit is contained in:
parent
6850c86451
commit
85502d61d0
3 changed files with 12 additions and 3 deletions
5
dist/post_run/index.js
vendored
5
dist/post_run/index.js
vendored
|
|
@ -49251,7 +49251,10 @@ function installLint(versionConfig) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// We want to always overwrite files if the local cache already has them
|
// 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);
|
extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args);
|
||||||
}
|
}
|
||||||
const urlParts = assetURL.split(`/`);
|
const urlParts = assetURL.split(`/`);
|
||||||
|
|
|
||||||
5
dist/run/index.js
vendored
5
dist/run/index.js
vendored
|
|
@ -49261,7 +49261,10 @@ function installLint(versionConfig) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// We want to always overwrite files if the local cache already has them
|
// 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);
|
extractedDir = yield tc.extractTar(archivePath, process.env.HOME, args);
|
||||||
}
|
}
|
||||||
const urlParts = assetURL.split(`/`);
|
const urlParts = assetURL.split(`/`);
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,10 @@ export async function installLint(versionConfig: VersionConfig): Promise<string>
|
||||||
repl = /\.zip$/
|
repl = /\.zip$/
|
||||||
} else {
|
} else {
|
||||||
// We want to always overwrite files if the local cache already has them
|
// 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)
|
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue