From 616a2f4a291ed96938f444978b9224729a123d6b Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 16 Aug 2018 11:48:29 +0300 Subject: [PATCH] vendor: bump fsnotify To include https://github.com/fsnotify/fsnotify/pull/260 (fix for https://github.com/fsnotify/fsnotify/issues/194). Signed-off-by: Kir Kolyshkin --- vendor.conf | 2 +- vendor/github.com/fsnotify/fsnotify/inotify.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor.conf b/vendor.conf index 9c4981c1c07fc..285b6943ff3c6 100644 --- a/vendor.conf +++ b/vendor.conf @@ -95,7 +95,7 @@ github.com/philhofer/fwd 98c11a7a6ec829d672b03833c3d69a7fae1ca972 github.com/tinylib/msgp 3b556c64540842d4f82967be066a7f7fffc3adad # fsnotify -github.com/fsnotify/fsnotify v1.4.7 +github.com/fsnotify/fsnotify c9e9bfb647855178ec5f3947c02e6bd47a379eb9 https://github.com/kolyshkin/fsnotify/ # awslogs deps github.com/aws/aws-sdk-go v1.12.66 diff --git a/vendor/github.com/fsnotify/fsnotify/inotify.go b/vendor/github.com/fsnotify/fsnotify/inotify.go index d9fd1b88a05f2..3cb34284811a6 100644 --- a/vendor/github.com/fsnotify/fsnotify/inotify.go +++ b/vendor/github.com/fsnotify/fsnotify/inotify.go @@ -303,12 +303,12 @@ func (e *Event) ignoreLinux(mask uint32) bool { return true } - // If the event is not a DELETE or RENAME, the file must exist. - // Otherwise the event is ignored. - // *Note*: this was put in place because it was seen that a MODIFY - // event was sent after the DELETE. This ignores that MODIFY and - // assumes a DELETE will come or has come if the file doesn't exist. - if !(e.Op&Remove == Remove || e.Op&Rename == Rename) { + // If the event is Create or Write, the file must exist, or the + // event will be suppressed. + // *Note*: this was put in place because it was seen that a Write + // event was sent after the Remove. This ignores the Write and + // assumes a Remove will come or has come if the file doesn't exist. + if e.Op&Create == Create || e.Op&Write == Write { _, statErr := os.Lstat(e.Name) return os.IsNotExist(statErr) }