Fsevents for watching on macOS?

As a macOS and hugo user, I have been facing ulimit issues.
I know hugo has some ways to address this issues (poll flag).

My expectation is that it will be more efficient to use fsevents for watching if possible.
I made a dirty prototyping with fsnotify/fsevents on local.
And then, I found that it may be possible.

While I regard it as best that fsnotify/fsnotify will support fsevents on macOS in the future, do you have any opinions for instaling fsnotify/fsevents?

If you can get the tests in https://github.com/gohugoio/hugo/blob/master/watcher/filenotify/poller_test.go to pass, go for it.

OK. I do not have any tests currently. I will try.

OK, I notice now that this package uses CGO, which I’m hesitant to add without further discussion. I suggest you create a proposal on GitHub.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.