Skip to content

[GR-65845] Prevent -H:ExcludeResources=... from excluding directory resources. #11477

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

graalvmbot
Copy link
Collaborator

When specifying an ExcludeResources pattern that does remove resources files from a resource directory it can happen easily that accidentally the resource-directory gets exuded as well.

Suppose a user adds -H:ExcludeResources=^resdir/(?!required_res/).* to prevent any resources in resdir that do not match this pattern to get included. Due to having the pattern not only matched against a resourceName but also resourceName + "/" we will accidentally also exclude the "resdir" directory resource. This can break user applications that check for the existence of that directory resource at runtime.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 25, 2025
@graalvmbot graalvmbot merged commit 6d02d43 into master Jun 27, 2025
13 checks passed
@graalvmbot graalvmbot deleted the paw/GR-65845 branch June 27, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants