Skip to content

Commit 320b8d9

Browse files
authored
Temporarily work around golangci-lint custom git bug (#2181)
1 parent e88d0f4 commit 320b8d9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Herebyfile.mjs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,14 @@ 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];
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
409410
const major = version.split(".")[0];
410411
const versionSuffix = ["v0", "v1"].includes(major) ? "" : "/" + major;
411412

0 commit comments

Comments
 (0)