Packages specified on the command line should be interpreted relative to cwd iff they are local (e.g. ./http within $GOROOT/src/net), otherwise a request for, say, "golang.org/x/net/http2/hpack" might return the vendored package depending on the working directory. The FindPackage hook function now takes a build.ImportMode parameter, so it matches the signature of (*build.Context).Import. The AllowVendor flag is enabled only for imports within source files, but not for the initial packages. + test. Change-Id: I756dc46b70928d2fd9f824e6670092d8169e0d64 Reviewed-on: https://go-review.googlesource.com/18318 Reviewed-by: Robert Griesemer <gri@golang.org> |
||
|---|---|---|
| benchmark/parse | ||
| blog | ||
| cmd | ||
| container/intsets | ||
| cover | ||
| go | ||
| godoc | ||
| imports | ||
| oracle | ||
| playground | ||
| present | ||
| refactor | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
README
This subrepository holds the source for various packages and tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go oracle and the test coverage tool, can be fetched with "go get". Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.