mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-08-27 11:31:37 +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 {
|
||||
// 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);
|
||||
|
||||
2
dist/run/index.js
generated
vendored
2
dist/run/index.js
generated
vendored
@@ -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);
|
||||
|
||||
@@ -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