mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-08-30 21:11:39 +00:00
fix: binary installation for FreeBSD (#1415)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
2
dist/post_run/index.js
generated
vendored
2
dist/post_run/index.js
generated
vendored
@@ -69112,7 +69112,7 @@ async function installBin(versionInfo) {
|
|||||||
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"];
|
const args = ["xz"];
|
||||||
if (process.platform.toString() != "darwin") {
|
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||||
args.push("--overwrite");
|
args.push("--overwrite");
|
||||||
}
|
}
|
||||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
||||||
|
|||||||
2
dist/run/index.js
generated
vendored
2
dist/run/index.js
generated
vendored
@@ -69112,7 +69112,7 @@ async function installBin(versionInfo) {
|
|||||||
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"];
|
const args = ["xz"];
|
||||||
if (process.platform.toString() != "darwin") {
|
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||||
args.push("--overwrite");
|
args.push("--overwrite");
|
||||||
}
|
}
|
||||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ async function installBin(versionInfo: VersionInfo): Promise<string> {
|
|||||||
} 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"]
|
const args = ["xz"]
|
||||||
if (process.platform.toString() != "darwin") {
|
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||||
args.push("--overwrite")
|
args.push("--overwrite")
|
||||||
}
|
}
|
||||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)
|
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)
|
||||||
|
|||||||
Reference in New Issue
Block a user