forked from arduino/arduino-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 38f72ef
committed
Draft: Upgrade go-paths-helper to patched version
This commit should not be merged, instead the indicated commit should be
merged into upstream go-paths-helper first and this commit adapted.
This makes two relevant changes:
- ReadDirRecursive now returns broken symlinks as-is (and other files
that cannot be stat'd due to permission errors) rather than failing
entirely. This causes broken symlinks to no longer break the build,
unless they are actually used (i.e. broken .cpp links will cause gcc
to error out later).
- FilterOutDirs no longer filters out broken symlinks (and other files
that cannot be stat'd due to whatever error). This ensures that
broken symlinks are actually returned by Sketch.supportedFiles, so
sketch.New can check them (though that still ignores any errors
currently).
The test suite is updated for these changes.1 parent 1e1db0a commit 38f72ef
3 files changed
+9
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | + | ||
56 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
258 | + | ||
259 | + | ||
258 | 260 |
| |
259 | 261 |
| |
260 | 262 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 | - | ||
227 | - | ||
228 | - | ||
229 | - | ||
230 | - | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
|
0 commit comments