1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:04:39 -07:00

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

R=rsc
CC=golang-dev
https://golang.org/cl/5502064
This commit is contained in:
Alex Brainman 2011-12-23 09:46:30 +11:00
parent 2afebbdf35
commit 102c1a7c96

View File

@ -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")