-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
suggestions #3
Comments
Do you mean for example |
yes, and It is best to add the name of the operating system in the ratio Windows, Linux ...... |
The question is how the script should obtain this version number. Since it only has the Git repository URI, and that could in theory point anywhere, not necessarily the OpenJDK GitHub repository, the version number cannot be extracted from it. Do you have a suggestion how the JDK version could be obtained within the script?
I am not completely sure about this one. Ideally the Docker build would be host OS independent and always produce the same output (for Linux 64 bit, as specified by the |
Do you think an alternative would be to include the abbreviated Git SHA in the database file name, e.g. |
My idea is to create some standard JDK version compilation files, such as codeql Java build jdk8 Linux, codeql Java build jdk8 windows, etc. And you can upload these databases created by compiling standard files to GitHub for developers to download. Sometimes waiting is a painful thing. After all, it takes a long time to compile. |
Also I would like to ask a question not related to this project, how to create a script to scan *.jar or *.war, *.class or is there a way to do it? |
Building the JDK for Windows would require a different setup. The OpenJDK building instructions have a section for this with WSL but I have not tested it. I have created #5 now to track this feature request.
I probably won't be doing this for several reasons:
On my machine it takes (if I recall correctly) about 30 - 40 minutes. The Docker image will also only be created once, unless the base Ubuntu image is updated(?). The question is also how often you want to create a JDK database; I assume you would only create one every new JDK release (or for specific changes), so in that case such long build times might not be that problematic. |
I don't think this is possible. CodeQL databases are created based on the source code discovered during compilation. The compiled code ( For general CodeQL questions it would probably be best to ask them on https://github.com/github/codeql; the maintainers of CodeQL can probably give you more information. |
It is recommended that the compiled jdk CodeQL database for each version be placed under release, which will be convenient for many people.
The text was updated successfully, but these errors were encountered: