From ae42beafd330d0f6a247a61933fb562b10f42d13 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 14 Sep 2012 12:21:57 -0400 Subject: [PATCH] cmd/go: fix build TBR=r TBR=r CC=golang-dev https://golang.org/cl/6496124 --- src/cmd/go/pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" { -- 2.48.1