Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] .repomixignore file ignored when ignore.customPatterns contains "**/.*" #320

Open
liblaf opened this issue Jan 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@liblaf
Copy link

liblaf commented Jan 27, 2025

First of all, thank you for creating and maintaining repomix! It's a fantastic tool.

I've encountered an issue while using the ignore.customPatterns in repomix.config.json. When I add "**/.*" in ignore.customPatterns, the .repomixignore file is completely ignored, and the patterns defined in it are no longer taken into account.

Steps to Reproduce:

  1. Add "**/.*" to ignore.customPatterns in repomix.config.json:
    {
      "ignore": {
        "customPatterns": ["**/.*"]
      }
    }
  2. Create a .repomixignore file with some patterns, e.g.:
    *.log
    /temp/
  3. Run repomix and observe that the patterns in .repomixignore are not applied.

Expected Behavior:

The patterns in .repomixignore should still be respected and applied, even if ignore.customPatterns includes "**/.*".

Actual Behavior:

The .repomixignore file is ignored entirely, and its patterns are not applied.

Additional Context:

This behavior seems unintended, as the ignore.customPatterns and .repomixignore should ideally work together rather than one overriding the other.

Let me know if you need further details or if there’s anything I can do to help debug this issue. Thanks again for your work on this project!

@yamadashy
Copy link
Owner

Hi, @liblaf !
Thank you for the report!

This seems like unintended behavior, so I will investigate.
I really appreciate the detailed information you've provided - it will help a lot with investigating the issue!

@yamadashy yamadashy added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants