hack/update-vendor.sh

This commit is contained in:
Jordan Liggitt
2019-11-05 14:11:10 -05:00
parent 9a5b7c24ad
commit 297570e06a
932 changed files with 77190 additions and 28219 deletions

View File

@@ -68,7 +68,7 @@ func FindWorkspaceRoot(rootDir string) (root string, rest string) {
// Find searches from the given dir and up for the WORKSPACE file
// returning the directory containing it, or an error if none found in the tree.
func Find(dir string) (string, error) {
if dir == "" || dir == "/" || dir == "." {
if dir == "" || dir == "/" || dir == "." || (len(dir) == 3 && strings.HasSuffix(dir, ":\\")) {
return "", os.ErrNotExist
}
for repoRootFile, fiFunc := range repoRootFiles {