Bun path.matchesGlob Inconsistently Matches Dot Files Compared to Node.js
Is it fixed? Not yet.
Ongoing since Nov 12, 20:08 UTC. First reported Nov 12, 20:08 UTC.
What happened
Bun's path.matchesGlob incorrectly matches * and ** against dot files and dot folders differently than Node.js. This glob matching discrepancy affects developers relying on parity with Node's path module behavior.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
path.matchesGlob matches * and ** against dot files and dot folders, where Node does not
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportpath.matchesGlob matches * and ** against dot files and dot folders, where Node does not(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4-canary.1+8aa496e1d (also 1.4.4+38afee6c8) What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? Run bun repro.mjs with the script in https://gist.github.com/YevheniiKotyrlo/d5d061bcd6d72e95f9638ae6f8fadf0a, then node repro.mjs. It calls path.posix.matchesGlob and path.matchesGlob on seven cases and compares each answer with Node's: import path from 'node:path'; path.posix.matchesGlob('a/.d/two.css',…
by YevheniiKotyrlo 0upvotes 0comments
FAQ
What happened in the Bun issue?
Bun's path.matchesGlob incorrectly matches * and ** against dot files and dot folders differently than Node.js. This glob matching discrepancy affects developers relying on parity with Node's path module behavior.
What is affected by the Bun issue?
Bun (versions: 1.4.4-canary.1+8aa496e1d, 1.4.4+38afee6c8).
When did the Bun issue start and end?
It started Nov 12, 20:08 UTC and is still ongoing (6 d 8 h so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.