fix(ignore): BUILD files incorrectly ignored on case-insensitive file systems (macOS)
Author: yamadashyCreated Nov 29, 2025Updated Jul 11, 2026
Labelsenhancement
Summary
On macOS (case-insensitive file system), pants build tool's BUILD files are incorrectly ignored because the default ignore pattern build/** matches them.
Problem
- Repomix has
build/**in defaultIgnore.ts:111 - macOS uses a case-insensitive file system by default (HFS+/APFS)
- The
BUILDfiles (used by pants build tool) are matched bybuild/**pattern - Users cannot simply add
!BUILDto include patterns because that would still be affected by the ignore
Expected Behavior
BUILD files should be included in repomix output, as they are source configuration files (not build output directories).
Current Workaround
Users need to disable default patterns entirely and manually specify all other patterns:
{
"ignore": {
"useDefaultPatterns": false,
"customPatterns": [
// manually add all patterns except build/**
]
}
}This is not ideal.
Potential Solutions
Explicitly set
caseSensitiveMatch: truein globby options atcreateBaseGlobbyOptions()in fileSearch.tsChange the pattern from
build/**to something more specific that won't matchBUILDfilesAdd
!BUILDand!**/BUILDto a "never ignore" list that takes precedence
Environment
- OS: macOS (case-insensitive file system)
- Build tool: pants (uses
BUILDfiles)
Reference
Source: yamadashy/repomix