rjeczalik / notify

File system event notification library on steroids.
MIT License
900 stars 128 forks source link

This library does not build on macOS ventura (13.0.1) #216

Closed imclaren closed 1 year ago

imclaren commented 1 year ago

Note that this issue is a duplication of #212

This library does not build on macOS ventura (13.0.1):

github.com/rjeczalik/notify cgo-gcc-prolog:217:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations] /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here

A workaround is to add the following to line 24 of watcher_fsevents_cgo.go to ignore this warning:

cgo CFLAGS: -Wno-deprecated

However, preferably watcher_fsevents_cgo should be updated to use FSEventStreamSetDispatchQueue instead of FSEventStreamScheduleWithRunLoop.

imclaren commented 1 year ago

Covered under #212