Skip to content

Commit 7451b04

Browse files
authored
Use golangci-lint 2.7.0 (#2200)
1 parent 7599a10 commit 7451b04

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.custom-gcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
destination: ./_tools
66

Herebyfile.mjs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,13 @@ const customLinterPath = "./_tools/custom-gcl";
399399
const customLinterHashPath = customLinterPath + ".hash";
400400

401401
const 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 = /^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];
410409
const major = version.split(".")[0];
411410
const versionSuffix = ["v0", "v1"].includes(major) ? "" : "/" + major;
412411

0 commit comments

Comments
 (0)