From 72abfd94346622e1d2fbf23b4f01a92ff230c885 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 2 Dec 2025 14:49:37 -0800 Subject: [PATCH] Temporarily work around golangci-lint custom git bug --- Herebyfile.mjs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Herebyfile.mjs b/Herebyfile.mjs index b1b7e03b91..78e9afd1e2 100644 --- a/Herebyfile.mjs +++ b/Herebyfile.mjs @@ -399,13 +399,14 @@ const customLinterPath = "./_tools/custom-gcl"; const customLinterHashPath = customLinterPath + ".hash"; const golangciLintPackage = memoize(() => { - const golangciLintYml = fs.readFileSync(".custom-gcl.yml", "utf8"); - const pattern = /^version:\s*(v\d+\.\d+\.\d+).*$/m; - const match = pattern.exec(golangciLintYml); - if (!match) { - throw new Error("Expected version in .custom-gcl.yml"); - } - const version = match[1]; + // const golangciLintYml = fs.readFileSync(".custom-gcl.yml", "utf8"); + // const pattern = /^version:\s*(v\d+\.\d+\.\d+).*$/m; + // const match = pattern.exec(golangciLintYml); + // if (!match) { + // throw new Error("Expected version in .custom-gcl.yml"); + // } + // const version = match[1]; + const version = "v2.6.3-0.20251130135459-0212d7c8deac"; // https://github.com/golangci/golangci-lint/issues/6205 const major = version.split(".")[0]; const versionSuffix = ["v0", "v1"].includes(major) ? "" : "/" + major;