fix(runner): ignore changes inside .git#115
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a task caching issue where file accesses inside the .git directory were incorrectly invalidating the lint task cache. The fix ignores file accesses to paths within the .git directory when tracking changes for cache invalidation.
- Added logic to filter out
.gitdirectory accesses from cache tracking - Added comprehensive test case to verify
.gitchanges don't invalidate cache
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| crates/vite_task/src/execute.rs | Implements the core fix by filtering out .git directory accesses |
| packages/cli/tests/cases/lint-dot-git/steps.json | Defines test commands to verify cache behavior with .git changes |
| packages/cli/tests/cases/lint-dot-git/snap.txt | Expected test output showing cache hit after .git modifications |
| packages/cli/tests/cases/lint-dot-git/package.json | Minimal package.json for test case setup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
53959d3 to
0aa9425
Compare
0aa9425 to
864fb28
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merge activity
|
864fb28 to
ed60aa2
Compare
ed60aa2 to
cb5b02a
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: branchseer <dk4rest@gmail.com>
cb5b02a to
e88ed00
Compare

TL;DR
Ignore
.gitdirectory when tracking file accesses for task caching.What changed?
Added a condition in
execute_taskto ignore file accesses to paths that start with.gitor exactly match.git. This prevents oxlint's reads inside the.gitdirectory from invalidating the cache.Added a test case to verify that changes inside the
.gitdirectory don't invalidate the lint cache.