-
Notifications
You must be signed in to change notification settings - Fork 15
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
Determine how native-image --version
should look like after the upstream version change
#491
Comments
Also note that for mandrel we generally don't build the launcher as a native image, but keep the bash launcher. That has an effect on the version output too. |
With oracle#6321 I'm proposing this (bash launcher):
Which changes to this if compiled to native (with
That should be good enough. Thoughts? |
These two PRs implement the above proposal for mandrel:
|
I agree with the above two patches, but I think the bash-launcher should print the "Substrate VM" in the 3rd line as well. Furthermore, I am still not sold on To be inline with upstream GraalVM CE releases I would expect something like the following:
Notice that the |
Note that the value comes from So I'm not sure we can modify it. That version also changes whether or not this is a JDK 17 based build or a, say, JDK 20 based build (for the same Mandrel code level). To me the vendor version seems most flexible and the right thing to use (over any of the other non-vendor-JDK properties). |
We could ask upstream to reintroduce What I am trying to avoid is looking at different places to figure out the version depending on whether you are using GraalVM CE, Mandrel or another distribution. |
Possibly. With my OpenJDK hat on, I don't like it as it looks as if it was an OpenJDK version, which it isn't.
Makes sense, and it would be ideal yes. |
For the bash launcher, using I guess it isn't hugely important, as long as we can reach consensus. |
Quarkus update: quarkusio/quarkus#32366 |
For the time being it'll look like as proposed in: #491 (comment) The vendor version might change in the future, but that's for another day. |
Description
Before we go ahead and use the new mandrel version output in Quarkus, we should define what the new version output should look like.
For a recent Mandrel build from GraalVM master with JDK 20.0.1-dev build (no
java.vendor.version
set) we get this:Or for a build with
java.vendor.version
property set it looks like this:Which basically tells us everything about the JDK version, but nothing about the GraalVM code level. Note that Mandrel doesn't change OpenJDK, so the OpenJDK version info is less useful. This makes only sense if the whole native image code base would be part of OpenJDK itself, which it currently isn't.
Before the version change
GraalVM CE
Mandrel
After the version change
GraalVM CE
Mandrel
Insert your desired output here
The text was updated successfully, but these errors were encountered: