Relax requirement of mandrel versions starting with mandrel-

Since we can now define the distribution there is no longer the need to
include the mandrel- prefix in Mandrel versions.
This commit is contained in:
Foivos Zakkak
2023-10-30 17:24:23 +02:00
committed by Fabio Niephaus
parent 22b65d7de0
commit cde0daed27
5 changed files with 184 additions and 144 deletions

View File

@@ -58,13 +58,7 @@ async function run(): Promise<void> {
graalVMHome = await graalvm.setUpGraalVMJDKCE(javaVersion)
break
case c.DISTRIBUTION_MANDREL:
if (graalVMVersion.startsWith(c.MANDREL_NAMESPACE)) {
graalVMHome = await setUpMandrel(graalVMVersion, javaVersion)
} else {
throw new Error(
`Mandrel requires the 'version' option (see https://github.com/graalvm/setup-graalvm/tree/main#options).`
)
}
graalVMHome = await setUpMandrel(graalVMVersion, javaVersion)
break
case '':
if (javaVersion === c.VERSION_DEV) {