File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/custom-gcl.jsonschema.json
22
3- version : v2.6.2
3+ version : v2.7.0
44
55destination : ./_tools
66
Original file line number Diff line number Diff line change @@ -399,14 +399,13 @@ const customLinterPath = "./_tools/custom-gcl";
399399const customLinterHashPath = customLinterPath + ".hash" ;
400400
401401const golangciLintPackage = memoize ( ( ) => {
402- // const golangciLintYml = fs.readFileSync(".custom-gcl.yml", "utf8");
403- // const pattern = /^version:\s*(v\d+\.\d+\.\d+).*$/m;
404- // const match = pattern.exec(golangciLintYml);
405- // if (!match) {
406- // throw new Error("Expected version in .custom-gcl.yml");
407- // }
408- // const version = match[1];
409- const version = "v2.6.3-0.20251130135459-0212d7c8deac" ; // https://github.com/golangci/golangci-lint/issues/6205
402+ const golangciLintYml = fs . readFileSync ( ".custom-gcl.yml" , "utf8" ) ;
403+ const pattern = / ^ v e r s i o n : \s * ( v \d + \. \d + \. \d + ) .* $ / m;
404+ const match = pattern . exec ( golangciLintYml ) ;
405+ if ( ! match ) {
406+ throw new Error ( "Expected version in .custom-gcl.yml" ) ;
407+ }
408+ const version = match [ 1 ] ;
410409 const major = version . split ( "." ) [ 0 ] ;
411410 const versionSuffix = [ "v0" , "v1" ] . includes ( major ) ? "" : "/" + major ;
412411
You can’t perform that action at this time.
0 commit comments