Skip to content

Commit 8bbac23

Browse files
facchinmcmaglie
authored andcommitted
Avoid breaking the build if broken symlinks found
Fixes #159, please make sure that it doesn't introduce any regression Tests are passing on Linux but something nasty could happen on different OS Signed-off-by: Martino Facchin <[email protected]>
1 parent 22cdaf0 commit 8bbac23

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)