fix: skip node_modules/.vite-temp/ from fspy tracking#287
Open
fix: skip node_modules/.vite-temp/ from fspy tracking#287
Conversation
Vite writes transient compiled config files to node_modules/.vite-temp/ during builds. These files are both read and written by the build process, causing fspy to detect a read-write overlap that prevents caching with "not cached because it modified its input". Exclude node_modules/.vite-temp/ paths from fspy tracking, similar to the existing .git exclusion. These are ephemeral build artifacts that should never affect cache correctness. Closes voidzero-dev/vite-plus#1095
fengmk2
commented
Mar 22, 2026
| } | ||
|
|
||
| // Skip Vite temp config files (transient build artifacts) | ||
| if relative.as_str().contains("node_modules/.vite-temp/") { |
Member
Author
There was a problem hiding this comment.
Writing hardcode rules here in vite-task doesn't look good. It makes sense that this global configuration should be passed in vite-plus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
node_modules/.vite-temp/paths from fspy file access tracking.vite-tempwritesVite writes transient compiled config files to
node_modules/.vite-temp/during builds. These files are both read and written by the build process, causing fspy to detect a read-write overlap that prevents caching ("not cached because it modified its input").This adds a hardcoded exclusion for
node_modules/.vite-temp/in the fspy path filtering, similar to the existing.gitdirectory exclusion.Test plan
cache-skip-vite-temp: verifies second run hits cache despite.vite-tempwritecache-skip-vite-temp: verifies real source changes still cause cache misscache-miss-reasons,input-cache-test,cache-disabled)Closes voidzero-dev/vite-plus#1095
🤖 Generated with Claude Code