-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Description
Bug / Unintuitive DX
Running repomix --remote https://github.com/user/repo.git ignores the local repomix.config.json in my workspace because repomix first clones the remote repo and then searches for the config in the target repo instead of my current working directory.
Specifying a custom config with -c myconfig.json also initially seems to fail as well.
Solution
Technically, you can get the custom config working with an explicity path as opposed to a relative one but this is a bit unintuitive.
repomix --remote https://github.com/user/repo.git -c "$PWD/repomix.config.json"
The challenge is there are 3 potentiall options to pull config from
- Global config (home directory)
- Local workspace (local directory)
- Target repo (remote repo)
Since the purpose of the config file is for the library consumer rather than the library author it would be better if repomix used the local config instead of search the target repo for a config file.
Usage Context
Repomix CLI
Repomix Version
1.11.0
Node.js Version
v22.19.0