File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const modVersionRe = /github.com\/golangci\/golangci-lint\s(v.+)/
18
18
19
19
const parseVersion = ( s : string ) : Version => {
20
20
if ( s == "latest" || s == "" ) {
21
+ // TODO(ldez): it should be replaced with an explicit version (ex: v1.64.0)
21
22
return null
22
23
}
23
24
@@ -40,6 +41,7 @@ export const stringifyVersion = (v: Version): string => {
40
41
return `v${ v . major } .${ v . minor } ${ v . patch !== null ? `.${ v . patch } ` : `` } `
41
42
}
42
43
44
+ // TODO(ldez): it should be updated to v2.0.0.
43
45
const minVersion = {
44
46
major : 1 ,
45
47
minor : 28 ,
@@ -114,7 +116,8 @@ const getConfig = async (): Promise<Config> => {
114
116
maxRetries : 5 ,
115
117
} )
116
118
try {
117
- const url = `https://raw.githubusercontent.com/golangci/golangci-lint/master/assets/github-action-config.json`
119
+ // TODO(ldez): HEAD should be replaced with an explicit version (ex: v1.64.0).
120
+ const url = `https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/assets/github-action-config-v1.json`
118
121
const response : httpm . HttpClientResponse = await http . get ( url )
119
122
if ( response . message . statusCode !== 200 ) {
120
123
throw new Error ( `failed to download from "${ url } ". Code(${ response . message . statusCode } ) Message(${ response . message . statusMessage } )` )
@@ -132,6 +135,7 @@ export async function findLintVersion(mode: InstallMode): Promise<VersionConfig>
132
135
133
136
if ( mode == InstallMode . GoInstall ) {
134
137
const v : string = core . getInput ( `version` )
138
+ // TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0)
135
139
return { TargetVersion : v ? v : "latest" , AssetURL : "github.com/golangci/golangci-lint" }
136
140
}
137
141
You can’t perform that action at this time.
0 commit comments