8000 Broken FSEvents for symlink paths on macOS 10.15 · Issue #46 · fsnotify/fsevents · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Broken FSEvents for symlink paths on macOS 10.15 #46
@nonrational

Description

@nonrational

Which version of macOS are you using?

ProductName:	Mac OS X
ProductVersion:	10.15.1
BuildVersion:	19B88

Please describe the issue that occurred.

FSEvents for symlinks on macOS 10.15 aren't being sent or aren't being captured by fsnotify/fsevents.

Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.

Current tests fail on macOS 10.15 because ioutil.TempDir("", "fsexample") creates a file in /var/tmp/... which is a symlink to /private/var/tmp on macOS. I refactored fsevents_test.go in my fork (where I can run test on 10.15 via CircleCI) to show that the failing scenario is the one involving symlinks.

Workaround

The workaround is to use filepath.EvalSymlinks to get the "real" path then use that real path in the construction of your EventStream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0