We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0e92cf + 9710ecb commit e75a3fdCopy full SHA for e75a3fd
1 file changed
internal/cli/analyze.go
@@ -64,6 +64,12 @@ func runAnalyze(files []string) error {
64
}
65
defer idx.Close()
66
67
+ // Auto-reindex to ensure the index reflects current files on disk.
68
+ if err := autoReindex(idx); err != nil {
69
+ // Non-fatal: proceed with stale index rather than failing.
70
+ fmt.Fprintf(os.Stderr, "Warning: auto-reindex failed: %v\n", err)
71
+ }
72
+
73
// Convert all files to repo-relative paths.
74
targets := make([]string, len(files))
75
for i, file := range files {
0 commit comments