diff options
author | Bryan C. Mills <bcmills@google.com> | 2020-09-18 10:23:58 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2020-09-22 17:04:13 +0000 |
commit | 3aa09489ab3aa13a3ac78b1ff012b148ffffe367 (patch) | |
tree | 9c79071f0aff54205f0afdc3e274f5af3257d368 /src/cmd/go/internal/modcmd/why.go | |
parent | 4e1d812afc2ebe767face21f34e47de57f3f32a6 (diff) | |
download | go-3aa09489ab3aa13a3ac78b1ff012b148ffffe367.tar.gz go-3aa09489ab3aa13a3ac78b1ff012b148ffffe367.zip |
cmd/go: add a '-e' flag to 'mod tidy' and 'mod vendor'
This flag, like the -e flag to 'go list', instructs the command to
make a best effort to continue in spite of errors for specific packages.
Fixes #26603
Change-Id: I5ee2f50c71870ae8ef3f9b3e5b045474adcca525
Reviewed-on: https://go-review.googlesource.com/c/go/+/255960
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/go/internal/modcmd/why.go')
-rw-r--r-- | src/cmd/go/internal/modcmd/why.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/go/internal/modcmd/why.go b/src/cmd/go/internal/modcmd/why.go index 5a6d535700..e287c88060 100644 --- a/src/cmd/go/internal/modcmd/why.go +++ b/src/cmd/go/internal/modcmd/why.go @@ -66,10 +66,10 @@ func runWhy(ctx context.Context, cmd *base.Command, args []string) { modload.RootMode = modload.NeedRoot loadOpts := modload.PackageOpts{ - Tags: imports.AnyTags(), - LoadTests: !*whyVendor, - AllowErrors: true, - UseVendorAll: *whyVendor, + Tags: imports.AnyTags(), + LoadTests: !*whyVendor, + SilenceErrors: true, + UseVendorAll: *whyVendor, } if *whyM { |