Skip to content
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

include LWJGL's manifest in the shaded uber jar #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chirontt
Copy link
Contributor

so that the LWJGL's build number is shown properly in debug output
of the shaded uber jar.

This would fix the following debug output which displays the LWJGL's build number like:

[LWJGL] Version: 3.3.0 SNAPSHOT

which is wrong, to the correct build number string as specified in the LWJGL's manifest file:

[LWJGL] Version: 3.3.0 build 18

The build number is quite important to LWJGL, as this string is used in the path to the temporary directory where LWJGL caches its native files such as .dll, .so, etc., for re-use. If the build number string is always SNAPSHOT, due to the relevant info missing in the uber jar's manifest file for this project, then the LWJGL library would run the risk of re-using older natives (and potentially incorrect natives) from the cache at runtime, causing mysterious crashes.

so that the LWJGL's build number is shown properly in debug output
of the shaded uber jar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant