]> Cypherpunks repositories - gostls13.git/commit
cmd/go: error out of 'go work use' if no directories are given
authorBryan C. Mills <bcmills@google.com>
Thu, 3 Mar 2022 20:13:11 +0000 (15:13 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 3 Mar 2022 21:32:41 +0000 (21:32 +0000)
commit4f8094386c3c015f6b6f3efc3a002d188433d388
treed2b9731a72c596a81f03ec200afeed3f8d9f09d9
parent87a345ca3849a68de13f29bdc7628f2943734946
cmd/go: error out of 'go work use' if no directories are given

Otherwise, the behavior of 'go work use -r' (without arguments)
may be surprising.

Change-Id: I50cf1339591720ec5bd333146b89c9944ce420d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/389855
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/workcmd/use.go
src/cmd/go/testdata/script/work_use_noargs.txt [new file with mode: 0644]