go/src/cmd
Jay Conrod 5993fbbd48 [release-branch.go1.16] cmd/go: clarify errors for commands run outside a module
The new error message tells the user what was wrong (no go.mod found)
and directs them to 'go help modules', which links to tutorials.

Includes test fix from CL 298794
Fixes #44746

Change-Id: I98f31fec4a8757eb1792b45491519da4c552cb0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/298650
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
(cherry picked from commit b87e9b9f68)
Reviewed-on: https://go-review.googlesource.com/c/go/+/298929
2021-03-10 21:27:07 +00:00
..
addr2line all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
api all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
asm cmd/go, cmd/asm: pass -linkshared to assembler for shared linkage builds 2020-12-10 16:38:15 +00:00
buildid cmd/internal/buildid: update Mach-O code signature when rewriting buildid 2020-12-01 23:37:58 +00:00
cgo all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
compile [release-branch.go1.16] cmd/compile: fix escape analysis of heap-allocated results 2021-03-01 22:02:31 +00:00
cover all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
dist doc: remove all docs not tied to distribution 2021-02-16 02:07:02 +00:00
doc all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
fix all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
go [release-branch.go1.16] cmd/go: clarify errors for commands run outside a module 2021-03-10 21:27:07 +00:00
gofmt all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
internal cmd/internal/obj/arm64: fix VMOVQ instruction encoding error 2021-01-23 12:38:15 +00:00
link [release-branch.go1.16] cmd/link: handle types as converted to interface when dynlink 2021-03-01 22:31:33 +00:00
nm all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
objdump cmd/internal/objfile: don't require runtime.symtab symbol for XCOFF 2021-01-11 18:19:08 +00:00
pack cmd/pack: r command create output file if not exist 2020-12-22 18:16:54 +00:00
pprof all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
test2json all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
trace all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
vendor [release-branch.go1.16] cmd: upgrade golang.org/x/mod to relax import path check 2021-03-03 17:59:29 +00:00
vet all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
README.vendor
go.mod [release-branch.go1.16] cmd: upgrade golang.org/x/mod to relax import path check 2021-03-03 17:59:29 +00:00
go.sum [release-branch.go1.16] cmd: upgrade golang.org/x/mod to relax import path check 2021-03-03 17:59:29 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.