Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions watcher/fswatch/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ func ignorePathDefault(path string) bool {
return true
}

// ignore go vendor
if strings.HasPrefix(path, "vendor") || strings.Contains(path, "/vendor") {
return true
}

// vim creates random numeric files
base := filepath.Base(path)
if str.IsNumeric(base) {
Expand Down
5 changes: 5 additions & 0 deletions watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ func DefaultIgnorePathFn(path string) bool {
return true
}

// ignore go vendor
if strings.HasPrefix(path, "vendor") || strings.Contains(path, "/vendor") {
return true
}

// vim creates random numeric files
base := filepath.Base(path)
if str.IsNumeric(base) {
Expand Down