go/src/cmd
Filippo Rossi 492c85ab84 cmd/go: prevent panic in go work use
Check if paths passed as arguments are existing directories.

Fixes #51841
Fixes #51749

Change-Id: Icfd148627e6f2c4651d6f923a37d413e68c67f6c
GitHub-Last-Rev: 77fffa7635
GitHub-Pull-Request: golang/go#51845
Reviewed-on: https://go-review.googlesource.com/c/go/+/394154
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-04 06:48:45 +00:00
..
addr2line
api internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
asm all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
buildid
cgo cmd/cgo: retain original file paths in godefs generated comment 2022-04-03 07:18:10 +00:00
compile cmd/compile: use LZCNT instruction for GOAMD64>=3 2022-04-04 04:01:17 +00:00
cover all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
dist all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
doc internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
fix internal/diff: add, replacing cmd/internal/diff 2022-03-18 16:56:29 +00:00
go cmd/go: prevent panic in go work use 2022-04-04 06:48:45 +00:00
gofmt cmd/gofmt: return a proper error for empty Go files 2022-03-24 09:17:34 +00:00
internal all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
link all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
nm internal/testenv: add GOROOT and use it to fix tests broken with -trimpath 2022-03-18 21:55:52 +00:00
objdump cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
pack cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
pprof cmd/pprof: point to -h in package documentation 2022-04-01 12:16:03 +00:00
test2json
trace all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
vendor cmd/vendor: update golang.org/x/tools to c717623e31 2022-03-21 18:28:15 +00:00
vet all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
README.vendor
go.mod cmd/vendor: update golang.org/x/tools to c717623e31 2022-03-21 18:28:15 +00:00
go.sum cmd/vendor: update golang.org/x/tools to c717623e31 2022-03-21 18:28:15 +00:00

README.vendor

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