-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: mod tidy should ignore missing standard library packages [1.16 backport] #44793
Comments
Approving per discussion in a release meeting. This backport applies to both 1.16 (this issue) and 1.15 (#44792). Since the fix in CL 298749 appears to be close to ready, marking this as a release-blocker since we don't want to issue Go 1.16.2 without including this fix. |
Change https://golang.org/cl/298949 mentions this issue: |
Closed by merging 6e04188 to release-branch.go1.16. |
…s 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 #44793 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> (cherry picked from commit 56d52e6) Reviewed-on: https://go-review.googlesource.com/c/go/+/298949
@jayconrod requested issue #44557 (fixed in 56d52e6 for Go 1.17) to be considered for backport to the next 1.16 minor release.
The text was updated successfully, but these errors were encountered: