From 6a5fa2da729df36f5a1cdb0c6e777d1da45729ec Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Tue, 20 Jun 2023 13:02:17 +0200 Subject: [PATCH] Mark 22.3.2 as latest when `version` opt is used. --- dist/main/index.js | 10 +++++----- src/graalvm.ts | 4 ++-- src/main.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index 094753b..feb153c 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -70863,7 +70863,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setUpGraalVMRelease = exports.findGraalVMVersion = exports.setUpGraalVMLatest = exports.findHighestJavaVersion = exports.setUpGraalVMJDKDevBuild = exports.findLatestGraalVMJDKCEJavaVersion = exports.setUpGraalVMJDKCE = exports.setUpGraalVMJDK = void 0; +exports.setUpGraalVMRelease = exports.findGraalVMVersion = exports.setUpGraalVMLatest_22_X = exports.findHighestJavaVersion = exports.setUpGraalVMJDKDevBuild = exports.findLatestGraalVMJDKCEJavaVersion = exports.setUpGraalVMJDKCE = exports.setUpGraalVMJDK = void 0; const c = __importStar(__nccwpck_require__(9042)); const utils_1 = __nccwpck_require__(1314); const gds_1 = __nccwpck_require__(9543); @@ -70984,9 +70984,9 @@ function findHighestJavaVersion(release, version) { } exports.findHighestJavaVersion = findHighestJavaVersion; // Support for GraalVM 22.X releases and earlier -function setUpGraalVMLatest(gdsToken, javaVersion) { +function setUpGraalVMLatest_22_X(gdsToken, javaVersion) { return __awaiter(this, void 0, void 0, function* () { - const lockedVersion = '22.3.1'; + const lockedVersion = '22.3.2'; if (gdsToken.length > 0) { return setUpGraalVMRelease(gdsToken, lockedVersion, javaVersion); } @@ -70995,7 +70995,7 @@ function setUpGraalVMLatest(gdsToken, javaVersion) { return setUpGraalVMRelease(gdsToken, version, javaVersion); }); } -exports.setUpGraalVMLatest = setUpGraalVMLatest; +exports.setUpGraalVMLatest_22_X = setUpGraalVMLatest_22_X; function findGraalVMVersion(release) { const tag_name = release.tag_name; if (!tag_name.startsWith(GRAALVM_TAG_PREFIX)) { @@ -71229,7 +71229,7 @@ function run() { graalVMHome = yield graalvm.setUpGraalVMJDK(javaVersion); } else { - graalVMHome = yield graalvm.setUpGraalVMLatest(gdsToken, javaVersion); + graalVMHome = yield graalvm.setUpGraalVMLatest_22_X(gdsToken, javaVersion); } break; case c.VERSION_DEV: diff --git a/src/graalvm.ts b/src/graalvm.ts index 4519028..70c2933 100644 --- a/src/graalvm.ts +++ b/src/graalvm.ts @@ -160,11 +160,11 @@ export function findHighestJavaVersion( // Support for GraalVM 22.X releases and earlier -export async function setUpGraalVMLatest( +export async function setUpGraalVMLatest_22_X( gdsToken: string, javaVersion: string ): Promise { - const lockedVersion = '22.3.1' + const lockedVersion = '22.3.2' if (gdsToken.length > 0) { return setUpGraalVMRelease(gdsToken, lockedVersion, javaVersion) } diff --git a/src/main.ts b/src/main.ts index cd97440..06ad446 100644 --- a/src/main.ts +++ b/src/main.ts @@ -86,7 +86,7 @@ async function run(): Promise { ) graalVMHome = await graalvm.setUpGraalVMJDK(javaVersion) } else { - graalVMHome = await graalvm.setUpGraalVMLatest( + graalVMHome = await graalvm.setUpGraalVMLatest_22_X( gdsToken, javaVersion )