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

Micronaut 4.0.1 buildNativeLambda task breaks under Windows with StringIndexOutOfBoundsException #805

Conversation

guillermocalvo
Copy link

@guillermocalvo guillermocalvo commented Aug 18, 2023

This PR fixes a bug introduced in #654 that affects only Windows.

The exclude-config arguments were being monkey-patched incorrectly: the last part of the regular expression \Q ... \E was being interpreted as a path separator on Windows. This PR makes lastIndexOf ignore that part.

No additional tests are needed, because LambdaNativeImageSpec was already failing on Windows due to this issue. I removed @IgnoreIf({ os.windows }) and it works fine after the bugfix.

`\E` was being incorrectly interpreted as a path separator on Windows
@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@melix
Copy link
Collaborator

melix commented Aug 29, 2023

Fixed in #808

@melix melix closed this Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: graal type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Micronaut 4.0.1 buildNativeLambda task breaks under Windows with StringIndexOutOfBoundsException
3 participants