File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ const getRequestedLintVersion = (): Version => {
101101export type VersionConfig = {
102102 Error ?: string
103103 TargetVersion : string
104- AssetURL : string
105104}
106105
107106type 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
You can’t perform that action at this time.
0 commit comments