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

Commit 151b3c8

Browse files
committed
Fix remove-before-visit for Windows, too
1 parent b4ff96f commit 151b3c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/gps/strip_vendor_windows.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ func stripVendor(path string, info os.FileInfo, err error) error {
4040
}
4141

4242
case dir:
43-
return removeAll(path)
43+
if err := removeAll(path); err != nil {
44+
return err
45+
}
46+
return filepath.SkipDir
4447
}
4548
}
4649
}

0 commit comments

Comments
 (0)