Skip to content

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