Skip to content
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

Relax GraalVM version check for dev versions #495

Merged
merged 6 commits into from Sep 4, 2023

Conversation

dnestoro
Copy link
Collaborator

@dnestoro dnestoro commented Sep 1, 2023

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 1, 2023
Copy link
Member

@fniephaus fniephaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fniephaus fniephaus self-requested a review September 1, 2023 13:13
@@ -122,7 +122,8 @@ public static void checkVersion(String requiredVersion, String versionToCheck) {
if (versionToCheck.contains("GraalVM Runtime Environment")) {
return; // later than 22.3.1 (e.g., GraalVM for JDK 17 / GraalVM for JDK 20)
}
if (versionToCheck.startsWith("GraalVM dev") || versionToCheck.startsWith("native-image dev")) {
if ((versionToCheck.startsWith("native-image") && versionToCheck.contains("-dev+")) ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change -dev+ to just dev. We should try to be future-proof, i.e., we don't want to adapt this change any time the version string of GraalVM changes.

Maybe even reduce the whole check to just if (versionToCheck.contains("dev")) {.

Copy link
Member

@fniephaus fniephaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnestoro dnestoro force-pushed the dnestoro/RelaxGraalVMVersionCheck branch from f453d7a to e6c0810 Compare September 4, 2023 13:36
@dnestoro dnestoro merged commit 07e22c0 into graalvm:master Sep 4, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants