Skip to content

fs,path: key glob matcher cache by platform#64571

Open
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:path
Open

fs,path: key glob matcher cache by platform#64571
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:path

Conversation

@Archkon

@Archkon Archkon commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64570

Glob matchers capture the path platform when they are created. Include
the platform in the cache key so path.posix and path.win32 do not share
incompatible matchers for the same pattern.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/path

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Jul 18, 2026
@Archkon Archkon changed the title fs: key glob matcher cache by platform fs,path: key glob matcher cache by platform Jul 18, 2026
@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.24%. Comparing base (b8f81e9) to head (c88cec8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64571      +/-   ##
==========================================
- Coverage   90.25%   90.24%   -0.01%     
==========================================
  Files         739      739              
  Lines      241772   241773       +1     
  Branches    45571    45566       -5     
==========================================
- Hits       218204   218193      -11     
- Misses      15109    15112       +3     
- Partials     8459     8468       +9     
Files with missing lines Coverage Δ
lib/internal/fs/glob.js 91.27% <100.00%> (+<0.01%) ⬆️

... and 23 files with indirect coverage changes

🚀 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

path: matchesGlob() cache does not distinguish path platforms

2 participants