diff options
Diffstat (limited to 'libgo/go/cmd/go/internal/get/path.go')
-rw-r--r-- | libgo/go/cmd/go/internal/get/path.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libgo/go/cmd/go/internal/get/path.go b/libgo/go/cmd/go/internal/get/path.go index 67d7b8a47c2..ce2e0cdd709 100644 --- a/libgo/go/cmd/go/internal/get/path.go +++ b/libgo/go/cmd/go/internal/get/path.go @@ -11,7 +11,7 @@ import ( "unicode/utf8" ) -// The following functions are copied verbatim from cmd/go/internal/module/module.go, +// The following functions are copied verbatim from golang.org/x/mod/module/module.go, // with a change to additionally reject Windows short-names, // and one to accept arbitrary letters (golang.org/issue/29101). // @@ -44,9 +44,6 @@ func checkPath(path string, fileName bool) error { if path[0] == '-' { return fmt.Errorf("leading dash") } - if strings.Contains(path, "..") { - return fmt.Errorf("double dot") - } if strings.Contains(path, "//") { return fmt.Errorf("double slash") } |