Skip to content

Commit

Permalink
Ignore go-tmp-unmask
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Aug 7, 2022
1 parent 95fc7d2 commit 1fde628
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ func (w *watcher) scanChange(watchPath string) (string, error) {

err := filepath.Walk(watchPath, func(path string, info os.FileInfo, err error) error {
if err != nil {
// Ignore attempt to acess go temporary unmask
if strings.Contains(err.Error(), "-go-tmp-umask") {
return filepath.SkipDir
}

return fmt.Errorf("couldn't walk to path \"%s\": %v", path, err)
}

Expand Down

0 comments on commit 1fde628

Please sign in to comment.