Skip to content

Commit bedabad

Browse files
committed
Avoid breaking the build if broken symlinks found
Fixes arduino#159, please make sure that it doesn't introduce any regression Tests are passing on Linux but something nasty could happen on different OS
1 parent 0b55777 commit bedabad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/arduino.cc/builder/gohasissues/go_has_issues.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ func ReadDir(dirname string) ([]os.FileInfo, error) {
108108
for idx, info := range infos {
109109
info, err := resolveSymlink(dirname, info)
110110
if err != nil {
111-
return nil, err
111+
// unresolvable symlinks should be skipped silently
112+
return nil, nil
112113
}
113114
infos[idx] = info
114115
}

0 commit comments

Comments
 (0)