Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 214a361

Browse files
committed
Trying skipdir even on files, for windows' sake?
1 parent b4ff96f commit 214a361

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/gps/strip_vendor.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ func stripVendor(path string, info os.FileInfo, err error) error {
2727
return err
2828
}
2929
if realInfo.IsDir() {
30-
return os.Remove(path)
30+
if err := os.Remove(path); err != nil {
31+
return err
32+
}
33+
return filepath.SkipDir
3134
}
3235
}
3336

0 commit comments

Comments
 (0)