From 911ec56a221f2cb0322fe7e8a32026fafba0056f Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 17 Mar 2025 22:47:30 +0100 Subject: [PATCH] fix: update max version (#1201) --- dist/post_run/index.js | 8 ++++---- dist/run/index.js | 8 ++++---- src/version.ts | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 6154b0d..f4bd235 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -93208,7 +93208,7 @@ const modVersionRe = /github.com\/golangci\/golangci-lint\s(v\S+)/; const parseVersion = (s) => { if (s == "latest" || s == "") { // TODO(ldez): v2: it should be replaced with "return null" - return { major: 1, minor: 64, patch: 7 }; + return { major: 1, minor: 64, patch: 8 }; } const match = s.match(versionRe); if (!match) { @@ -93299,10 +93299,10 @@ async function getVersion(mode) { const v = core.getInput(`version`); // TODO(ldez): v2: to remove. if (v == "latest") { - return { TargetVersion: "v1.64.7" }; + return { TargetVersion: "v1.64.8" }; } - // TODO(ldez): v2: "v1.64.7" should be replaced with "latest". - return { TargetVersion: v ? v : "v1.64.7" }; + // TODO(ldez): v2: "v1.64.8" should be replaced with "latest". + return { TargetVersion: v ? v : "v1.64.8" }; } const reqVersion = getRequestedVersion(); // if the patched version is passed, just use it diff --git a/dist/run/index.js b/dist/run/index.js index aa15dd5..6a334e0 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -93208,7 +93208,7 @@ const modVersionRe = /github.com\/golangci\/golangci-lint\s(v\S+)/; const parseVersion = (s) => { if (s == "latest" || s == "") { // TODO(ldez): v2: it should be replaced with "return null" - return { major: 1, minor: 64, patch: 7 }; + return { major: 1, minor: 64, patch: 8 }; } const match = s.match(versionRe); if (!match) { @@ -93299,10 +93299,10 @@ async function getVersion(mode) { const v = core.getInput(`version`); // TODO(ldez): v2: to remove. if (v == "latest") { - return { TargetVersion: "v1.64.7" }; + return { TargetVersion: "v1.64.8" }; } - // TODO(ldez): v2: "v1.64.7" should be replaced with "latest". - return { TargetVersion: v ? v : "v1.64.7" }; + // TODO(ldez): v2: "v1.64.8" should be replaced with "latest". + return { TargetVersion: v ? v : "v1.64.8" }; } const reqVersion = getRequestedVersion(); // if the patched version is passed, just use it diff --git a/src/version.ts b/src/version.ts index 36b71c8..337fc8f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -19,7 +19,7 @@ const modVersionRe = /github.com\/golangci\/golangci-lint\s(v\S+)/ const parseVersion = (s: string): Version => { if (s == "latest" || s == "") { // TODO(ldez): v2: it should be replaced with "return null" - return { major: 1, minor: 64, patch: 7 } + return { major: 1, minor: 64, patch: 8 } } const match = s.match(versionRe) @@ -142,11 +142,11 @@ export async function getVersion(mode: InstallMode): Promise { const v: string = core.getInput(`version`) // TODO(ldez): v2: to remove. if (v == "latest") { - return { TargetVersion: "v1.64.7" } + return { TargetVersion: "v1.64.8" } } - // TODO(ldez): v2: "v1.64.7" should be replaced with "latest". - return { TargetVersion: v ? v : "v1.64.7" } + // TODO(ldez): v2: "v1.64.8" should be replaced with "latest". + return { TargetVersion: v ? v : "v1.64.8" } } const reqVersion = getRequestedVersion()