Summary: If you modify a file at the root level (like the celerity map) we run
the dir/path checks in the wrong order and fail to detect that we can't possibly
find any modules. This leads to an infinite loop inside the while loop below.
Test Plan: Ran "arc unit" on a change which affects the celerity map.
Reviewers: btrahan
Reviewed By: btrahan
CC: aran, btrahan
Differential Revision: 1146
$library_name = phutil_get_library_name_for_root($library_root);
$path = Filesystem::resolvePath($path);
- if ($path == $library_root) {
- continue;
- }
if (!is_dir($path)) {
$path = dirname($path);
}
+ if ($path == $library_root) {
+ continue;
+ }
+
$library_path = Filesystem::readablePath($path, $library_root);
do {
// Add the module and all parent modules as affected modules, which