mirror of
https://github.com/golang/go
synced 2024-11-25 00:07:56 -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:
parent
2afebbdf35
commit
102c1a7c96
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user