-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DISCO APi for getting latest Mandrel releases #67
Conversation
Add test to test similar to the GraalVM one for the expected error output.
@fniephaus I went with a mandrel specific patch for now, let me know if you would like to make it more generic so that we could use it for both mandrel and graal. |
b8c9c59
to
af83447
Compare
Since we can now define the distribution there is no longer the need to include the mandrel- prefix in Mandrel versions.
af83447
to
01d1ada
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I have two minor comments, but feel free to address them in a follow up PR.
graalVMHome = await setUpMandrel(graalVMVersion, javaVersion) | ||
} else { | ||
throw new Error( | ||
`Mandrel requires the 'version' option (see https://github.com/graalvm/setup-graalvm/tree/main#options).` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably still want to throw this error if graalVMVersion.length == 0
, no? If I read this correctly, version: 'mandrel-22.2.0.0-Final'
and version: '22.2.0.0-Final'
will now do the same thing, but version
is still required.
javaVersion: string | ||
): Promise<string> { | ||
const url = `${DISCO_API_BASE}?jdk_version=${javaVersion}&distribution=${c.DISTRIBUTION_MANDREL}&architecture=${c.JDK_ARCH}&operating_system=${c.JDK_PLATFORM}&latest=per_distro` | ||
const _http = new httpClient.HttpClient('http-client-tests') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure http-client-tests
is supposed to be used in production code?
Thank you @fniephaus, I will. |
mandrel-
Closes #64