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.
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.