Commit 102c1a7c authored by Alex Brainman's avatar Alex Brainman

go/build: (*Tree).BinDir should not return path with / in it on windows

R=rsc
CC=golang-dev
https://golang.org/cl/5502064
parent 2afebbdf
......@@ -57,7 +57,7 @@ func (t *Tree) PkgDir() string {
func (t *Tree) BinDir() string {
if t.Goroot {
if gobin := os.Getenv("GOBIN"); gobin != "" {
return gobin
return filepath.Clean(gobin)
}
}
return filepath.Join(t.Path, "bin")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment