Skip to content

In case of an case sensitive file system, probe for other cases in the maven resolver - #2845

Open
DavyLandman wants to merge 1 commit into
mainfrom
fix/support-case-sensitive-filesystems-in-maven-scheme
Open

In case of an case sensitive file system, probe for other cases in the maven resolver#2845
DavyLandman wants to merge 1 commit into
mainfrom
fix/support-case-sensitive-filesystems-in-maven-scheme

Conversation

@DavyLandman

Copy link
Copy Markdown
Member

Fixing a part of #2842

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.09524% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 45%. Comparing base (22b7a02) to head (41eeec3).

Files with missing lines Patch % Lines
...rascalmpl/uri/file/MavenRepositoryURIResolver.java 38% 24 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2845   +/-   ##
=======================================
  Coverage       45%     45%           
- Complexity    6718    6726    +8     
=======================================
  Files          841     841           
  Lines        67018   67056   +38     
  Branches     10012   10021    +9     
=======================================
+ Hits         30769   30799   +30     
- Misses       33863   33870    +7     
- Partials      2386    2387    +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

/**
* recursively probe file system to find candidate matches for the full file name in a different casing
*/
private @Nullable ISourceLocation pathMatcher(ISourceLocation root, String subPart) throws IOException {

@jurgenvinju jurgenvinju Aug 15, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since listAllMainArtifacts contains the same logic and file discovery process, could we reuse that and normalize the String[] until we find a match. Or even factor out its Stream<String> and normalize and find the first match?

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.

2 participants