Commit 97cc36c
Fix recursive pattern queries skipping valid directories
Summary:
For recursive patterns with Unknown status, we were checking if a BUCK file
exists at the prefix path. This incorrectly filtered out valid recursive
queries like `fbcode//security/mfgsec/log_collector/...` where the prefix
directory exists but has no BUCK file directly.
Now we check:
- PatternType::Package -> does_package_exist (BUCK file check)
- PatternType::Recursive -> does_directory_exist (directory check)
Reviewed By: RiskRunner0
Differential Revision: D91609376
fbshipit-source-id: 7f31840d62ad610bfe15d53063a2d6286bf2589c1 parent 9583007 commit 97cc36c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| |||
0 commit comments