Watches files and records, or triggers actions, when they change.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Upgrade getdeps template's mozilla-actions/sccache-action from v0.0.9 -> v0.0.10 Summary: Someone flagged this on the Cachelib repo in [this PR](https://github.com/facebook/CacheLib/pull/461). This apparently fixes a deprecation warning for node20.js by bumping to node24 ([relevant PR](https://github.com/Mozilla-Actions/sccache-action/pull/245) for v0.0.10). Reviewed By: xavierd Differential Revision: D108750058 fbshipit-source-id: b17971b6bd5c17d56eddfa56a9d03d295aa2e882 | 16 天前 | |
Updating hashes Summary: GitHub commits: https://github.com/facebook/CacheLib/commit/b37a6f48cac7c92795c5d13169e7d75eefa37b7b https://github.com/facebook/fb303/commit/990cd34d265464ed8348b90129c09ff60331a86f https://github.com/facebook/fbthrift/commit/f37b3cfeeb94bcbbc5ee977c19c4950246c01f46 https://github.com/facebook/folly/commit/879082ab2217ed1231317ce29a83a403a28f403c https://github.com/facebook/hermes/commit/226df588ded6285212b8343b00601f3a0d796e2b https://github.com/facebook/mvfst/commit/2f0979201e5f98f0533e3a689bc77ba1a248f1cb https://github.com/facebook/proxygen/commit/d21ab37cbd6a9467a92ee3d94327e5923b78a66f https://github.com/facebook/pyrefly/commit/7442359b24b448a5bb90fe5d32bea495487babad https://github.com/facebook/wangle/commit/d193c6684f3645071be07c263308d9ea81f876dd https://github.com/facebookexperimental/edencommon/commit/2b09f644387c97111f44503f72d8c4e2eac32c68 https://github.com/facebookexperimental/rust-shed/commit/8e7608dee9ffeff2c074a3a50e2842eafbc06b63 https://github.com/facebookincubator/fizz/commit/b1062d5c94f2cbbc3d72b2a3f1c8149322333233 https://github.com/react/yoga/commit/d0396793b301fa40ca5630deaf0f6f9a2e08c174 Reviewed By: ajb85 fbshipit-source-id: ab06d6b633f52c36ffb5600efcbe3ebbfd3cf4c9 | 1 天前 | |
Persist ACL root state in overlays Summary: Add persisted aclRootState metadata for overlay, WAL replay, and SQLite inode catalogs while keeping legacy isRestricted reads and writes. Legacy rows synthesize Unknown or RestrictedAclRoot from isRestricted, and invalid persisted enum values fall back to the legacy flag instead of silently becoming unrestricted. Reviewed By: muirdm Differential Revision: D109758229 fbshipit-source-id: 9f51bcc0af86adb03622024ab082ae7ba2474661 | 2 天前 | |
Backfill AGENTS.md and refresh routing across onboarded projects Summary: Every project onboarded to code-review-graph carries the `CRG:ROUTING` block in its `CLAUDE.md` so Claude routes structural queries to the graph tools. Codex and MetaCode read `AGENTS.md`, which most onboarded projects were missing — so those agents had no routing guidance and fell back to grep/search. This backfills `AGENTS.md` for every onboarded project and refreshes the routing block in both `CLAUDE.md` and `AGENTS.md` to the current version. Generated mechanically by `ensure-agent-routing.py` (idempotent, keyed by the `CRG:ROUTING` version marker), covering all 33 onboarded projects across `fbcode`, `www`, `xplat`, `fbandroid`, `fbobjc`, and `third-party`. Differential Revision: D109634732 fbshipit-source-id: d6fa7b96266e66579ae70606cdba63f91e1edb06 | 6 天前 | |
Bump vulnerable JS dependencies in website to fix GitHub vulnerability alerts Summary: Upgrade resolutions in `oss/website/package.json` to pull in patched versions of 16 packages flagged by GitHub Dependabot on `facebook/watchman` (mirrors `fbcode/watchman/oss/website/yarn.lock`). Closes 35 mirrored tasks across 17 packages — `ajv` is also bumped transitively (6.12.6 -> 6.15.0, 8.17.1 -> 8.20.0) without an explicit override; pinning `ajv` to ^8 broke `ajv-keywords@3.5.2` at build time, so the transitive resolution is preserved instead. Bumps: axios ^0.30.2 -> ^0.31.0 (now 0.31.1) brace-expansion -> ^1.1.13 (now 1.1.14) dompurify -> ^3.4.0 (now 3.4.2; major from 2.4.3) follow-redirects ^1.15.6 -> ^1.16.0 lodash -> ^4.18.0 (now 4.18.1) lodash-es -> ^4.18.0 (now 4.18.1) minimatch -> ^3.1.4 (now 3.1.5) node-forge ^1.3.2 -> ^1.4.0 picomatch -> ^2.3.2 qs ^6.14.1 -> ^6.14.2 (now 6.15.1) serialize-javascript -> ^7.0.5 (major from 6.x) svgo -> ^2.8.1 (now 2.8.2) undici -> ^7.24.0 (now 7.25.0) uuid -> ^14.0.0 (major from 8.x/9.x) yaml -> ^1.10.3 **/express/path-to-regexp -> ^0.1.13 Reviewed By: kavehahmadi60 Differential Revision: D103749787 fbshipit-source-id: cdd1f564d948614dd5a430d68f4932e585696b5c | 1 个月前 | |
move .gitattributes, .github, .gitignore Summary: Move git and github metadata files back to the GitHub root. Reviewed By: genevievehelsel Differential Revision: D29368342 fbshipit-source-id: bd5035d9cd71362e6ee7d6096504393a1f800999 | 4 年前 | |
feat: add rust client apis for trigger, trigger-list, trigger-del (#1221) Summary: Pull Request resolved: https://github.com/facebook/watchman/pull/1221 Reviewed By: genevievehelsel Differential Revision: D58467377 Pulled By: quark-zju fbshipit-source-id: 31224a1518e7af66f323b807eacac9a9a4bdb426 | 2 年前 | |
Update default CMAKE_CXX_STANDARD to C++20 (#1303) Summary: Most Meta C++ projects now use C++20 language features, causing the OSS build to fail. Update the default CMAKE_CXX_STANDARD accordingly. Pull Request resolved: https://github.com/facebook/watchman/pull/1303 Reviewed By: quark-zju Differential Revision: D83150457 Pulled By: ahornby fbshipit-source-id: 9d0d558b892f9a6ae86cd115e89b0444ba445e59 | 7 个月前 | |
oss: move CODE_OF_CONDUCT.md to the root Summary: This file needs to be at the root, not under watchman/ Reviewed By: kmancini Differential Revision: D29394728 fbshipit-source-id: d1be0d428b7bce7b31f95c044bc165473a837419 | 4 年前 | |
add getting started section to CONTRIBUTING.md file Summary: It is better to link this more info in the CONTRIBUTING.md file Reviewed By: genevievehelsel Differential Revision: D62276041 fbshipit-source-id: edf0ea79b2c81bfc3ab41bb84370a4885e723875 | 1 年前 | |
license: change company name to Meta Platforms Summary: Since the company changed name, let's reflect it in the license headers Reviewed By: genevievehelsel Differential Revision: D33408131 fbshipit-source-id: 2d80e0265c96df703b0b0682dd441213db570440 | 4 年前 | |
add getting started section to CONTRIBUTING.md file Summary: It is better to link this more info in the CONTRIBUTING.md file Reviewed By: genevievehelsel Differential Revision: D62276041 fbshipit-source-id: edf0ea79b2c81bfc3ab41bb84370a4885e723875 | 1 年前 | |
Re-sync with internal repository (#918) Co-authored-by: Facebook Community Bot <6422482+facebook-github-bot@users.noreply.github.com> | 4 年前 | |
add scripts for installing system dependencies and running tests Summary: It's convenient to use the Watchman Vagrant VMs to investigate test failures and builds that otherwise can't be reproduced locally. To make that even easier, add a script for installing system package dependencies (so autogen.sh is fast) and a script for running the test suite. Reviewed By: genevievehelsel Differential Revision: D36534190 fbshipit-source-id: 935416fc11db8454f5a715bd74d457424ddfec21 | 4 年前 | |
disallow use of `rsa::pkcs1v15` Summary: The `rsa` crate currently has a Marvin Attack CVE open for it (CVE-2023-49092). According to https://people.redhat.com/~hkario/marvin/, one of the possible mitigations is to stop using PKCS1 v1.5, which is the specific component vulnerable to a Marvin Attack. The `rsa` docs also call this out: https://docs.rs/rsa/0.10.0-rc.17/rsa/pkcs1v15/index.html This adds a repo-wide lint that forbids new uses of `pkcs1v15` to mitigate this CVE within our codebase. We should be able to remove this lint once RSA v0.10 is released, which appears to reduce the risk of the timing attack to acceptable levels: https://github.com/RustCrypto/RSA/issues/19#issuecomment-3719492764 However, it's unclear when v0.10 will be released, and upgrading to v0.10 seems like it will be a tall lift given we will likely also have to update many of its dependencies (https://github.com/RustCrypto/RSA/blob/master/Cargo.toml#L17-L33), so pulling in an RC version of v0.10 doesn't seem viable (see also D100724564). Until v0.10 is released and we can revisit this, I think this lint will have to do. Reviewed By: dtolnay Differential Revision: D101282516 fbshipit-source-id: 70ba18c24a3a7132d709317748daa7097b2fe057 | 2 个月前 | |
Add --allow-system-packages flag to install-system-packages.sh (#1328) Summary: Claude thinks this will fix the master failures This flag is required for getdeps.py to properly install system dependencies, matching the behavior used in the main CI workflows. Pull Request resolved: https://github.com/facebook/watchman/pull/1328 Reviewed By: genevievehelsel Differential Revision: D90225882 fbshipit-source-id: 17fa538ef6d34a768ba76730f510b43a652856e4 | 5 个月前 | |
add scripts for installing system dependencies and running tests Summary: It's convenient to use the Watchman Vagrant VMs to investigate test failures and builds that otherwise can't be reproduced locally. To make that even easier, add a script for installing system package dependencies (so autogen.sh is fast) and a script for running the test suite. Reviewed By: genevievehelsel Differential Revision: D36534190 fbshipit-source-id: 935416fc11db8454f5a715bd74d457424ddfec21 | 4 年前 | |
rustfmt update Summary: X-link: https://github.com/meta-pytorch/monarch/pull/1646 update rustfmt to match 1.90.0 cut. Fixed formatting issues by updating project's rustfmt.toml or updating code. Reviewed By: dtolnay Differential Revision: D84213462 fbshipit-source-id: 3df02141c6eec83e6193d9e32675f81d475a784c | 8 个月前 |
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change.
Documentation
Head on over to https://facebook.github.io/watchman/
License
Watchman is made available under the terms of the MIT License. See the LICENSE file that accompanies this distribution for the full text of the license.
Support
Watchman is primarily maintained by the source control team at Meta Platforms, Inc. We support:
- Windows and macOS builds
- Linux builds on recent Ubuntu and Fedora releases
- Watchman's compatibility commitment
- Python, Rust, and JavaScript clients
Support for additional operating systems, release packaging, and language bindings is community-maintained:
- Homebrew
- FreeBSD
- Solaris
Please submit a GitHub issue to report any troubles.
Contributing
Please see the contributing document.