]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix build
authorRuss Cox <rsc@golang.org>
Fri, 14 Sep 2012 16:21:57 +0000 (12:21 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 14 Sep 2012 16:21:57 +0000 (12:21 -0400)
TBR=r

TBR=r
CC=golang-dev
https://golang.org/cl/6496124

src/cmd/go/pkg.go

index c902b81122b388900a969a3dd7aba4496cda1d3a..602f00cba9a4eb017c34b313d229f4c9fd87f354 100644 (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" {