Skip to content

Commit 379cb34

Browse files
authored
Revert "feat: support linux arm64 public preview (golangci#1144)"
This reverts commit cce5e61.
1 parent 0a9441b commit 379cb34

File tree

5 files changed

+3
-30
lines changed

5 files changed

+3
-30
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
matrix:
4848
os:
4949
- ubuntu-latest
50-
- ubuntu-24.04-arm
5150
- macos-latest
5251
- windows-latest
5352
version:
@@ -76,7 +75,6 @@ jobs:
7675
matrix:
7776
os:
7877
- ubuntu-latest
79-
- ubuntu-24.04-arm
8078
- macos-latest
8179
- windows-latest
8280
version:
@@ -106,7 +104,6 @@ jobs:
106104
matrix:
107105
os:
108106
- ubuntu-latest
109-
- ubuntu-24.04-arm
110107
- macos-latest
111108
- windows-latest
112109
runs-on: ${{ matrix.os }}

dist/post_run/index.js

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/run/index.js

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/install.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const getAssetURL = (versionConfig: VersionConfig): string => {
2222
}
2323
let arch = os.arch()
2424
switch (arch) {
25-
case "arm64":
26-
arch = "arm64"
27-
break
2825
case "x64":
2926
arch = "amd64"
3027
break

src/version.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as core from "@actions/core"
22
import * as httpm from "@actions/http-client"
33
import * as fs from "fs"
4-
import os from "os"
54
import path from "path"
65

76
import { InstallMode } from "./install"
@@ -140,14 +139,10 @@ export async function findLintVersion(mode: InstallMode): Promise<VersionConfig>
140139
// if the patched version is passed, just use it
141140
if (reqLintVersion?.major !== null && reqLintVersion?.minor != null && reqLintVersion?.patch !== null) {
142141
return new Promise((resolve) => {
143-
let arch: string = "amd64"
144-
if (os.arch() === "arm64") {
145-
arch = "arm64"
146-
}
147142
const versionWithoutV = `${reqLintVersion.major}.${reqLintVersion.minor}.${reqLintVersion.patch}`
148143
resolve({
149144
TargetVersion: `v${versionWithoutV}`,
150-
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-${arch}.tar.gz`,
145+
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-amd64.tar.gz`,
151146
})
152147
})
153148
}

0 commit comments

Comments
 (0)