diff options
author | RenKanai <rk2904powr@gmail.com> | 2022-03-27 22:06:22 +0900 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-02-27 21:23:29 +0000 |
commit | 0ff91e03dbb7ed169915b12793cbee9ca9798d4c (patch) | |
tree | a5eb972a348c06aee44bdbb2c2cbb5d929806358 /src/cmd/go/alldocs.go | |
parent | 83907206de003555c73a16b1b6d97662b5511cf7 (diff) | |
download | go-0ff91e03dbb7ed169915b12793cbee9ca9798d4c.tar.gz go-0ff91e03dbb7ed169915b12793cbee9ca9798d4c.zip |
cmd/go: reject list when -find and -export are used together
Fixes #51952.
Change-Id: If2cfc41d65373ca38cfb7b0396be8988d444eb5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/396074
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r-- | src/cmd/go/alldocs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 6b91b53347a..0f8433efca7 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -925,6 +925,8 @@ // // The -find flag causes list to identify the named packages but not // resolve their dependencies: the Imports and Deps lists will be empty. +// With the -find flag, the -deps, -test and -export commands cannot be +// used. // // The -test flag causes list to report not only the named packages // but also their test binaries (for packages with tests), to convey to |