aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2021-03-04 11:50:31 -0500
committerJay Conrod <jayconrod@google.com>2021-03-04 22:53:05 +0000
commit56d52e661114be60fb1893b034ac0c5976b622af (patch)
treed69314a3ad242019c2dc23d6a2e11fac93d34875 /src/encoding
parentb87e9b9f68f1eb0d685fd250b3b47495710e0059 (diff)
downloadgo-56d52e661114be60fb1893b034ac0c5976b622af.tar.xz
cmd/go: don't report missing std import errors for tidy and vendor
'go mod tidy' and 'go mod vendor' normally report errors when a package can't be imported, even if the import appears in a file that wouldn't be compiled by the current version of Go. These errors are common for packages introduced in higher versions of Go, like "embed" in 1.16. This change causes 'go mod tidy' and 'go mod vendor' to ignore missing package errors if the import path appears to come from the standard library because it lacks a dot in the first path element. Fixes #44557 Updates #27063 Change-Id: I61d6443e77ab95fd8c0d1514f57ef4c8885a77cc Reviewed-on: https://go-review.googlesource.com/c/go/+/298749 Trust: Jay Conrod <jayconrod@google.com> Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions