Repository navigation
Conversation
save_manifest kept an entry as long as its file existed on disk, even when the current scan no longer returned it (ignore rules, generated files). detect_incremental then flagged those as deleted on every run. Add prune_to_scan; watch._rebuild_code's full-rebuild call sites pass it since they have the complete detect() result. Default stays subset-preserving for incremental callers passing partial file lists. Fixes Graphify-Labs#1908
Member
|
Thanks @Yashasm18 - this is the same fix I landed on v8 in 75cf56b (ships in 0.9.17): save_manifest prunes scan-excluded-but-present files on a full rebuild (against the full detect corpus, never out-of-root entries) and detect_incremental distinguishes deleted from excluded-but-present. Closing as superseded; appreciate the fix. |
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.
Fixes #1908.
save_manifest kept a manifest entry as long as the file still existed on
disk, even when the current scan no longer returned it (ignore rules,
generated-file handling). detect_incremental then compared the manifest
against the scan and flagged those entries as deleted — permanently, on
every incremental run.
Added a prune_to_scan flag to save_manifest: when True, an entry only
survives if it's both on disk and present in the current files corpus.
Wired it into watch._rebuild_code's three full-rebuild call sites, which
already have the complete detect() result. Default stays False
(subset-preserving), so incremental callers passing only changed files
still don't erase untouched entries (#917).
Added the three regression tests the issue specified: