fix: update max version (#1201)

This commit is contained in:
Ludovic Fernandez
2025-03-17 22:47:30 +01:00
committed by GitHub
parent eb5c0cc489
commit 911ec56a22
3 changed files with 12 additions and 12 deletions

8
dist/post_run/index.js generated vendored
View File

@ -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

8
dist/run/index.js generated vendored
View File

@ -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

View File

@ -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<VersionInfo> {
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()