gnodet opened a new pull request, #12618:
URL: https://github.com/apache/maven/pull/12618

   ## Summary
   
   - Cherry-picks the fix from #12617 (by @desruisseaux) which removes an 
erroneous optimization in `PathSelector` that skipped path relativization when 
all patterns started with `**`
   - Adds a regression test for the exact false-positive scenario: when the 
base directory path contains a segment matching a `**` pattern (e.g., base = 
`something/target/test-classes` with pattern `**/test-classes/**`), files 
outside the matching child directory were incorrectly matched
   
   The test verifies:
   - A file inside a `test-classes/` child directory **is** correctly matched
   - A file in an `other/` sibling directory **is not** falsely matched just 
because the base directory path contains `test-classes`
   
   ## Test plan
   
   - [x] `PathSelectorTest.testNoFalsePositiveWhenBaseDirectoryMatchesPattern` 
fails without the fix (confirmed false positive)
   - [x] All 6 `PathSelectorTest` tests pass with the fix applied
   - [ ] CI passes
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to