-
-
Notifications
You must be signed in to change notification settings - Fork 939
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.ts -
Change the pattern from
build/**to something more specific that won't matchBUILDfiles -
Add
!BUILDand!**/BUILDto a "never ignore" list that takes precedence
Environment
- OS: macOS (case-insensitive file system)
- Build tool: pants (uses
BUILDfiles)
Reference
coderabbitai
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working