]> Cypherpunks repositories - gostls13.git/commit
go/build: look in $GOROOT/src/cmd/foo/bar for import cmd/foo/bar
authorRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 16:33:19 +0000 (12:33 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 16:33:19 +0000 (12:33 -0400)
commitd078d483ce87b4311f79e988a0b609d3c53d3cb4
tree4b18e35abd5156407aed6267e3f7cfa815d574f8
parent08033f9816e1e33092c93c050dc34514d8e3e926
go/build: look in $GOROOT/src/cmd/foo/bar for import cmd/foo/bar

This lets us have non-main packages like cmd/internal or cmd/nm/internal/whatever.

The src/pkg migration (see golang.org/s/go14mainrepo) will allow this
as a natural side effect. The explicit change here just allows use of the
effect a little sooner.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/117630043
src/pkg/go/build/build.go
src/pkg/go/build/build_test.go