From: Russ Cox Date: Fri, 14 Sep 2012 16:21:57 +0000 (-0400) Subject: cmd/go: fix build X-Git-Tag: go1.1rc2~2450 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ae42beafd330d0f6a247a61933fb562b10f42d13;p=gostls13.git cmd/go: fix build TBR=r TBR=r CC=golang-dev https://golang.org/cl/6496124 --- diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go index c902b81122..602f00cba9 100644 --- a/src/cmd/go/pkg.go +++ b/src/cmd/go/pkg.go @@ -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" {