go/src
Bryan C. Mills cee9dfc39b cmd/go: fix 'go test' and 'go fmt' with files outside a module
Use the actual loader result in findModule instead of making
assumptions about nesting in the build list.
As a side-effect, this produces much clearer error messages for
packages that (for one reason or another) failed to load.

Adjust the package and module path outside a module to
"command-line-arguments". That string already appears in the output of
a number of (module-mode and GOPATH-mode) commands for file arguments,
and as far as I can tell operation outside a module is currently the
only case in which the module path of a package is not actually a
prefix of the import path.

Fixes #28011
Fixes #27099
Fixes #28943
Updates #27102
Updates #28459
Updates #27063

Change-Id: I61d5556df7b1b7d1efdaffa892f0e3e95b612d87
Reviewed-on: https://go-review.googlesource.com/c/153459
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2018-12-11 21:45:00 +00:00
..
archive
bufio bufio: make Reader.Peek invalidate Unreads 2018-11-13 15:08:13 +00:00
builtin
bytes all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
cmd cmd/go: fix 'go test' and 'go fmt' with files outside a module 2018-12-11 21:45:00 +00:00
compress
container container/heap: adjust wording in comments 2018-11-13 13:42:59 +00:00
context
crypto crypto/ecdsa: fix NSA reference to Suite B implementer's guide to FIPS 186-3 2018-12-10 16:06:44 +00:00
database/sql all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
debug all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
encoding encoding/pem: test getLine does not include trailing whitespace 2018-11-19 23:35:21 +00:00
errors
expvar
flag
fmt fmt: update formatting example for maps 2018-11-26 05:08:44 +00:00
go go/internal/gccgoimporter: add XCOFF support 2018-12-11 18:18:55 +00:00
hash hash/fnv: use bits.Mul64 for 128-bit hash 2018-12-10 22:50:48 +00:00
html all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
image
index/suffixarray
internal internal/xcoff: add big archive support 2018-12-11 16:15:10 +00:00
io
log log: add Logger.Writer method 2018-10-25 23:23:57 +00:00
math math/bits: remove named return in TrailingZeros16 2018-12-09 14:27:56 +00:00
mime mime: remove allocation introduced in recent fix 2018-11-20 19:09:38 +00:00
net net: skip TestVariousDeadlines on Plan 9 2018-12-05 20:32:39 +00:00
os os: increase default write size for TestClosedPipeRaceWrite 2018-12-04 03:32:16 +00:00
path all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
plugin plugin: fix build constraint to disable test on linux/arm64 2018-11-28 18:14:20 +00:00
reflect reflect: add comment for String method of Kind struct 2018-11-16 14:29:14 +00:00
regexp regexp: use backquotes for all regular expression examples 2018-11-20 12:05:15 +00:00
runtime runtime: revise openbsd/arm runtime defs 2018-12-11 16:05:36 +00:00
sort
strconv
strings strings,bytes: use inlineable function trampolines instead of linkname 2018-11-08 20:52:47 +00:00
sync all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
syscall syscall, cmd/go/internal/lockedfile: remove Flock syscall for aix/ppc64 2018-12-04 14:37:14 +00:00
testdata
testing all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
text text/template/parse: simplify Tree.pipeline 2018-10-29 12:20:11 +00:00
time all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
unicode unicode: improve generated comments for categories 2018-11-28 03:12:48 +00:00
unsafe cmd/compile: assume unsafe pointer arithmetic generates non-nil results 2018-11-14 21:01:36 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
naclmake.bash
nacltest.bash
race.bash cmd,runtime: enable race detector on arm64 2018-11-13 16:57:22 +00:00
race.bat
run.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00