Skip to content

Conversation

@dnestoro
Copy link
Contributor

@dnestoro dnestoro commented Sep 1, 2023

No description provided.

@dnestoro dnestoro requested review from fniephaus and melix September 1, 2023 12:59
@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
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

@christianwimmer christianwimmer Sep 1, 2023

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
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.

4 participants