Originally reported by @noahkhomer18 in #325.
All community-submitted pull requests are automatically converted to issues (bugs) & discussions (feature requests, enhancements) where they can be triaged and prioritized. Once prioritized, a PR implementation is created automatically.
Describe the Bug
The flue dev file watcher does not consult the project's .gitignore when deciding which file changes should trigger a rebuild. Directories that are listed in .gitignore — such as evals/results/ or custom tool output folders — still cause unnecessary rebuild churn when their contents change.
Expected Behavior
Paths matching .gitignore patterns should be excluded from the dev watcher so that changes to generated or ignored directories do not trigger rebuilds.
Steps to Reproduce
- Add a directory to
.gitignore (e.g., evals/results/).
- Run
flue dev to start the dev watcher.
- Write or modify a file inside that ignored directory (e.g., create
evals/results/output.json).
- Observe that the watcher picks up the change and triggers an unnecessary rebuild.
Original implementation from #325 by @noahkhomer18
Describe the Bug
The
flue devfile watcher does not consult the project's.gitignorewhen deciding which file changes should trigger a rebuild. Directories that are listed in.gitignore— such asevals/results/or custom tool output folders — still cause unnecessary rebuild churn when their contents change.Expected Behavior
Paths matching
.gitignorepatterns should be excluded from the dev watcher so that changes to generated or ignored directories do not trigger rebuilds.Steps to Reproduce
.gitignore(e.g.,evals/results/).flue devto start the dev watcher.evals/results/output.json).Original implementation from #325 by @noahkhomer18