Skip to content

Commit 54fe994

Browse files
committed
fix: handle renames
1 parent 03338d1 commit 54fe994

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/sourcerer/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.2.0
1+
v0.2.1

internal/fs/watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (w *Watcher) handleEvent(event fsnotify.Event) {
113113
}
114114

115115
func (w *Watcher) shouldIgnoreEvent(event fsnotify.Event) bool {
116-
if event.Op&(fsnotify.Write|fsnotify.Create|fsnotify.Remove) == 0 {
116+
if event.Op&(fsnotify.Write|fsnotify.Create|fsnotify.Remove|fsnotify.Rename) == 0 {
117117
return true
118118
}
119119

0 commit comments

Comments
 (0)