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.+)/
1818
1919const parseVersion = ( s : string ) : Version => {
2020 if ( s == "latest" || s == "" ) {
21+ // TODO(ldez): it should be replaced with an explicit version (ex: v1.64.0)
2122 return null
2223 }
2324
@@ -40,6 +41,7 @@ export const stringifyVersion = (v: Version): string => {
4041 return `v${ v . major } .${ v . minor } ${ v . patch !== null ? `.${ v . patch } ` : `` } `
4142}
4243
44+ // TODO(ldez): it should be updated to v2.0.0.
4345const minVersion = {
4446 major : 1 ,
4547 minor : 28 ,
@@ -114,7 +116,8 @@ const getConfig = async (): Promise<Config> => {
114116 maxRetries : 5 ,
115117 } )
116118 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`
118121 const response : httpm . HttpClientResponse = await http . get ( url )
119122 if ( response . message . statusCode !== 200 ) {
120123 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>
132135
133136 if ( mode == InstallMode . GoInstall ) {
134137 const v : string = core . getInput ( `version` )
138+ // TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0)
135139 return { TargetVersion : v ? v : "latest" , AssetURL : "github.com/golangci/golangci-lint" }
136140 }
137141
You can’t perform that action at this time.
0 commit comments