Commit 17c7b7c
committed
Panic when symlink loop encountered during project discovery
Even though the previous commit caused the project discovery code to gracefully avoid perpetual recursion when specific
configurations of symlinks are present in the linting target path, it turned out that the project data phase that comes
after is also not able to handle this correctly, and fixing that is more difficult since the incompatible code is in
Arduino CLI. So for now the provisional fix is to panic during the project discovery phase, which will at least avoid the
far worse behavior of a permanent hang.1 parent f96e65b commit 17c7b7c
2 files changed
+5
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 62 | + | |
85 | 63 | | |
86 | 64 | | |
87 | 65 | | |
| |||
0 commit comments