Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken FSEvents for symlink paths on macOS 10.15 #46

Open
nonrational opened this issue Feb 25, 2020 · 1 comment
Open

Broken FSEvents for symlink paths on macOS 10.15 #46

nonrational opened this issue Feb 25, 2020 · 1 comment

Comments

@nonrational
Copy link

nonrational commented Feb 25, 2020

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.

@nathany
Copy link
Contributor

nathany commented Jan 19, 2022

related: #53

pbnjay added a commit to pbnjay/fsevents that referenced this issue Jan 19, 2022
arp242 added a commit that referenced this issue Oct 14, 2022
* Return an error if FSEventStreamStart fails

* Validate the 4096 path limit and error detection

* Add notes for #46 and #48 limitations of macOS

Co-authored-by: Martin Tournoij <martin@arp242.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants