mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-09-02 21:59:20 +00:00
fix: binary installation for FreeBSD (#1415)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
co-authored by
Fernandez Ludovic
parent
c3ef4a2b0b
commit
3de4be9e74
+1
-1
@@ -69112,7 +69112,7 @@ async function installBin(versionInfo) {
|
||||
else {
|
||||
// We want to always overwrite files if the local cache already has them
|
||||
const args = ["xz"];
|
||||
if (process.platform.toString() != "darwin") {
|
||||
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||
args.push("--overwrite");
|
||||
}
|
||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
||||
|
||||
+1
-1
@@ -69112,7 +69112,7 @@ async function installBin(versionInfo) {
|
||||
else {
|
||||
// We want to always overwrite files if the local cache already has them
|
||||
const args = ["xz"];
|
||||
if (process.platform.toString() != "darwin") {
|
||||
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||
args.push("--overwrite");
|
||||
}
|
||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args);
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ async function installBin(versionInfo: VersionInfo): Promise<string> {
|
||||
} else {
|
||||
// We want to always overwrite files if the local cache already has them
|
||||
const args = ["xz"]
|
||||
if (process.platform.toString() != "darwin") {
|
||||
if (!["darwin", "freebsd"].includes(process.platform.toString())) {
|
||||
args.push("--overwrite")
|
||||
}
|
||||
extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)
|
||||
|
||||
Reference in New Issue
Block a user