-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
native-image bash launcher reports different version than native binary #3313
Comments
@olpaw Is this intentional? If so what's the recommendation to produce similar version output for bash launchers? |
Yes. This is intentional. Only if you build a native-image image you will get reported graal/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/DefaultOptionHandler.java Line 84 in 205f6ef
|
OK, thanks! |
Hi @olpaw , I am still a bit confused about this. In the case of tha bash-launcher we have a bash script that starts the Java application My understanding is that there is a need to differentiate the bash launcher from the native launcher through Now, I understand that the native image driver is part of GraalVM and thus it doesn't have its own version, but we could say that it inherits its version from the GraalVM distribution it is part of. In that sense would something like Could you please re-open this issue or should we open a new one making this a feature request? Thanks |
We use case "--version":
args.poll();
singleArgumentCheck(args, headArg);
String message;
if (NativeImage.IS_AOT) {
message = System.getProperty("java.vm.version");
} else {
message = "native-image " + NativeImage.graalvmVersion;
}
String message = System.getProperty("java.vm.version");
message += " (Java Version " + javaRuntimeVersion + ")";
nativeImage.showMessage(message);
System.exit(0); |
This has been addressed with #3329 |
Describe the issue
A recent master build from source, revision 3264554, produces different versions for bash launchers vs. a produced native via
--macro:native-image-launcher
.Bash launcher:
Native launcher:
Steps to reproduce the issue
Describe GraalVM and your environment:
More details
This looks to be caused by bcf982c
The text was updated successfully, but these errors were encountered: