mirror of
https://github.com/go-task/task.git
synced 2025-11-29 22:48:03 +02:00
fix: address compilation error on watch_test.go
Closes #1567 Co-authored-by: sunpe <sunpeng.dev@gmail.com>
This commit is contained in:
4
watch.go
4
watch.go
@@ -157,7 +157,7 @@ func (e *Executor) registerWatchedFiles(w *watcher.Watcher, calls ...*ast.Call)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if shouldIgnoreFile(absFile) {
|
||||
if ShouldIgnoreFile(absFile) {
|
||||
continue
|
||||
}
|
||||
if _, ok := watchedFiles[absFile]; ok {
|
||||
@@ -180,7 +180,7 @@ func (e *Executor) registerWatchedFiles(w *watcher.Watcher, calls ...*ast.Call)
|
||||
return nil
|
||||
}
|
||||
|
||||
func shouldIgnoreFile(path string) bool {
|
||||
func ShouldIgnoreFile(path string) bool {
|
||||
ignorePaths := []string{
|
||||
"/.task",
|
||||
"/.git",
|
||||
|
||||
Reference in New Issue
Block a user