Skip to content

Commit 9aa241a

Browse files
committed
chore: remove unused AssetURL
1 parent d427ae6 commit 9aa241a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/version.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ const getRequestedLintVersion = (): Version => {
101101
export type VersionConfig = {
102102
Error?: string
103103
TargetVersion: string
104-
AssetURL: string
105104
}
106105

107106
type Config = {
@@ -136,24 +135,16 @@ export async function findLintVersion(mode: InstallMode): Promise<VersionConfig>
136135
if (mode == InstallMode.GoInstall) {
137136
const v: string = core.getInput(`version`)
138137
// TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0).
139-
// TODO(ldez): AssetURL should be updated for v2.
140-
return { TargetVersion: v ? v : "latest", AssetURL: "github.com/golangci/golangci-lint" }
138+
return { TargetVersion: v ? v : "latest" }
141139
}
142140

143141
const reqLintVersion = getRequestedLintVersion()
144142

145143
// if the patched version is passed, just use it
146144
if (reqLintVersion?.major === 1 && reqLintVersion?.minor != null && reqLintVersion?.patch !== null) {
147145
return new Promise((resolve) => {
148-
let arch: string = "amd64"
149-
if (os.arch() === "arm64") {
150-
arch = "arm64"
151-
}
152146
const versionWithoutV = `${reqLintVersion.major}.${reqLintVersion.minor}.${reqLintVersion.patch}`
153-
resolve({
154-
TargetVersion: `v${versionWithoutV}`,
155-
AssetURL: `https://github.com/golangci/golangci-lint/releases/download/v${versionWithoutV}/golangci-lint-${versionWithoutV}-linux-${arch}.tar.gz`,
156-
})
147+
resolve({ TargetVersion: `v${versionWithoutV}` })
157148
})
158149
}
159150

0 commit comments

Comments
 (0)