facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.42k stars 989 forks source link

Watchman/buck2 integration #1177

Open mhathawayansys opened 6 months ago

mhathawayansys commented 6 months ago

I have a project on Linux which has been converted to use buck2 as the build system. Watchman is recommended as a prerequisite for using buck2 (https://buck2.build/docs/legacy/basics/getting-started/#prerequisites-1).

Running both separately doesn't appear to be an issue, but buck2 is simply using the default, iNotify, for its file watching. I am unable to find any documentation for how to integrate watchman with buck2.

How can I achieve using watchman as the file watching service for buck2?

Identical issue raised in parallel for buck2: https://github.com/facebook/buck2/issues/527