mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-02-23 20:42:25 +08:00
Use 22.3.1
when java-version
set to 19
.
This only applies to builds that use the old `version` option.
This commit is contained in:
parent
4a419f5908
commit
8ae40e7db9
6
dist/main/index.js
generated
vendored
6
dist/main/index.js
generated
vendored
@ -70696,7 +70696,9 @@ function fetchArtifact(userAgent, metadata, version, javaVersion) {
|
||||
}
|
||||
const artifactResponse = JSON.parse(yield response.readBody());
|
||||
if (artifactResponse.items.length !== 1) {
|
||||
throw new Error(`Found more than one GDS artifact`);
|
||||
throw new Error(artifactResponse.items.length > 1
|
||||
? `Found more than one GDS artifact. ${c.ERROR_HINT}`
|
||||
: `Unable to find GDS artifact. Are you sure version: '${version}' is correct?`);
|
||||
}
|
||||
return artifactResponse.items[0];
|
||||
});
|
||||
@ -70974,7 +70976,7 @@ exports.findHighestJavaVersion = findHighestJavaVersion;
|
||||
// Support for GraalVM 22.X releases and earlier
|
||||
function setUpGraalVMLatest_22_X(gdsToken, javaVersion) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const lockedVersion = '22.3.2';
|
||||
const lockedVersion = javaVersion === '19' ? '22.3.1' : '22.3.2';
|
||||
if (gdsToken.length > 0) {
|
||||
return setUpGraalVMRelease(gdsToken, lockedVersion, javaVersion);
|
||||
}
|
||||
|
@ -70,7 +70,11 @@ export async function fetchArtifact(
|
||||
await response.readBody()
|
||||
) as GDSArtifactsResponse
|
||||
if (artifactResponse.items.length !== 1) {
|
||||
throw new Error(`Found more than one GDS artifact`)
|
||||
throw new Error(
|
||||
artifactResponse.items.length > 1
|
||||
? `Found more than one GDS artifact. ${c.ERROR_HINT}`
|
||||
: `Unable to find GDS artifact. Are you sure version: '${version}' is correct?`
|
||||
)
|
||||
}
|
||||
return artifactResponse.items[0]
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ export async function setUpGraalVMLatest_22_X(
|
||||
gdsToken: string,
|
||||
javaVersion: string
|
||||
): Promise<string> {
|
||||
const lockedVersion = '22.3.2'
|
||||
const lockedVersion = javaVersion === '19' ? '22.3.1' : '22.3.2'
|
||||
if (gdsToken.length > 0) {
|
||||
return setUpGraalVMRelease(gdsToken, lockedVersion, javaVersion)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user