A go/build change in Go 1.9 (CL 33158) allowed for a better expected error message for "nonexistingpkg" case. CL 37768 did that. However, that shouldn't be done for Go 1.8 and older, since they don't have the corresponding go/build change. So, if the version is Go 1.8 or older, allow matching those previous expected outputs (before CL 37768) for "nonexistingpkg" case. Move test cases for TestCLI from a package-level variable into TestCLI itself. This is more readable, and isGo19's value is ready in time. Fixes golang/go#20122. Change-Id: I5e80600a75176d9e54ffebb7730849e381568316 Reviewed-on: https://go-review.googlesource.com/41810 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
|---|---|---|
| benchmark/parse | ||
| blog | ||
| cmd | ||
| container/intsets | ||
| cover | ||
| go | ||
| godoc | ||
| imports | ||
| playground | ||
| present | ||
| refactor | ||
| third_party | ||
| .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 guru 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.