hack/update-vendor.sh
This commit is contained in:
2
vendor/github.com/bazelbuild/buildtools/wspace/workspace.go
generated
vendored
2
vendor/github.com/bazelbuild/buildtools/wspace/workspace.go
generated
vendored
@@ -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 {
|
||||
|
Reference in New Issue
Block a user