1
0
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:
Andrey Nering
2024-04-08 21:45:07 -03:00
parent 1f157fef94
commit c6c69a5a63
2 changed files with 4 additions and 4 deletions

View File

@@ -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",