diff options
Diffstat (limited to 'libgo/go/cmd/go/main.go')
-rw-r--r-- | libgo/go/cmd/go/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/cmd/go/main.go b/libgo/go/cmd/go/main.go index 07fc4e2a9050..d80ff2da5fe6 100644 --- a/libgo/go/cmd/go/main.go +++ b/libgo/go/cmd/go/main.go @@ -136,7 +136,7 @@ func main() { // Diagnose common mistake: GOPATH==GOROOT. // This setting is equivalent to not setting GOPATH at all, // which is not what most people want when they do it. - if gopath := buildContext.GOPATH; gopath == runtime.GOROOT() { + if gopath := buildContext.GOPATH; filepath.Clean(gopath) == filepath.Clean(runtime.GOROOT()) { fmt.Fprintf(os.Stderr, "warning: GOPATH set to GOROOT (%s) has no effect\n", gopath) } else { for _, p := range filepath.SplitList(gopath) { |