我使用 Watchman 4.4.0 版本,发现 watchman 只能从根目录监视 2 级目录的问题。
所以我不确定这出了什么问题?
目录结构
src/<- set watch roots
└── Oncmd
└── Command <- **File under this can't monitor
├── GencmdCommand.php
├── InitCommand.php
└── cmdCommand.php
守望者——观察名单
{
"version": "4.4.0",
"roots": [
"/home/udomsak/mycmd/src"
]
}
守望者——触发器列表
{
"version": "4.4.0",
"triggers": [
{
"name": "build_phar",
"append_files": true,
"command": [
"./build.sh"
],
"stdin": [
"name",
"exists",
"new",
"size",
"mode"
],
"expression": [
"anyof",
[
"match",
"*",
"wholename"
]
]
}
]
}