Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .custom-gcl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/custom-gcl.jsonschema.json

version: v2.6.2
version: v2.7.0

destination: ./_tools

Expand Down
15 changes: 7 additions & 8 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,13 @@ 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 version = "v2.6.3-0.20251130135459-0212d7c8deac"; // https://github.com/golangci/golangci-lint/issues/6205
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 major = version.split(".")[0];
const versionSuffix = ["v0", "v1"].includes(major) ? "" : "/" + major;

Expand Down