aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modget/get.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-09-18 10:23:58 -0400
committerBryan C. Mills <bcmills@google.com>2020-09-22 17:04:13 +0000
commit3aa09489ab3aa13a3ac78b1ff012b148ffffe367 (patch)
tree9c79071f0aff54205f0afdc3e274f5af3257d368 /src/cmd/go/internal/modget/get.go
parent4e1d812afc2ebe767face21f34e47de57f3f32a6 (diff)
downloadgo-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/modget/get.go')
-rw-r--r--src/cmd/go/internal/modget/get.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modget/get.go b/src/cmd/go/internal/modget/get.go
index 371ba8b690..52e3ec84fb 100644
--- a/src/cmd/go/internal/modget/get.go
+++ b/src/cmd/go/internal/modget/get.go
@@ -406,7 +406,7 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {
Tags: imports.AnyTags(),
ResolveMissingImports: true, // dubious; see https://golang.org/issue/32567
LoadTests: *getT,
- AllowErrors: true, // Errors may be fixed by subsequent upgrades or downgrades.
+ SilenceErrors: true, // Errors may be fixed by subsequent upgrades or downgrades.
SilenceUnmatchedWarnings: true, // We will warn after iterating below.
}
matches, _ = modload.LoadPackages(ctx, loadOpts, pkgPatterns...)