-
Notifications
You must be signed in to change notification settings - Fork 70
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
Relax GraalVM version check for dev versions #495
Conversation
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
common/utils/src/main/java/org/graalvm/buildtools/utils/NativeImageUtils.java
Outdated
Show resolved
Hide resolved
common/utils/src/main/java/org/graalvm/buildtools/utils/NativeImageUtils.java
Outdated
Show resolved
Hide resolved
@@ -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+")) || |
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.
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")) {
.
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
…ImageUtils.java Co-authored-by: Fabio Niephaus <code@fniephaus.com>
f453d7a
to
e6c0810
Compare
No description provided.