1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:44:44 -07:00

cmd/go: fix build

TBR=r

TBR=r
CC=golang-dev
https://golang.org/cl/6496124
This commit is contained in:
Russ Cox 2012-09-14 12:21:57 -04:00
parent ca75fdf972
commit ae42beafd3

View File

@ -319,7 +319,7 @@ func (p *Package) load(stk *importStack, bp *build.Package, err error) *Package
elem = full
}
p.target = filepath.Join(p.build.BinDir, elem)
if p.Goroot && (isGoTool[p.ImportPath] || hasPrefix(p.ImportPath, "exp/")) {
if p.Goroot && (isGoTool[p.ImportPath] || strings.HasPrefix(p.ImportPath, "exp/")) {
p.target = filepath.Join(gorootPkg, "tool", full)
}
if buildContext.GOOS == "windows" {