diff options
Diffstat (limited to 'libgo/go/go/build/path.go')
-rw-r--r-- | libgo/go/go/build/path.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/go/build/path.go b/libgo/go/go/build/path.go index bb9b8ca..b86f828 100644 --- a/libgo/go/go/build/path.go +++ b/libgo/go/go/build/path.go @@ -105,14 +105,14 @@ func FindTree(path string) (tree *Tree, pkg string, err error) { continue } tree = t - pkg = path[len(tpath):] + pkg = filepath.ToSlash(path[len(tpath):]) return } err = fmt.Errorf("path %q not inside a GOPATH", path) return } tree = defaultTree - pkg = path + pkg = filepath.ToSlash(path) for _, t := range Path { if t.HasSrc(pkg) { tree = t |