]> Cypherpunks repositories - gostls13.git/commit
cmd/go: change error message for missing import with unused replacement
authorJay Conrod <jayconrod@google.com>
Fri, 16 Oct 2020 18:02:16 +0000 (14:02 -0400)
committerJay Conrod <jayconrod@google.com>
Fri, 23 Oct 2020 20:54:41 +0000 (20:54 +0000)
commitf24ff3856a629a6b5fefe28a1676638d5f103342
tree0f7857c6f5d057f1bda25a808191121d92a01c59
parent4fdb98dcb1bf7a33565c81db3c00e91a466e098d
cmd/go: change error message for missing import with unused replacement

In readonly mode, if a package is not provided by any module in the
build list, and there is an unused replacement that contains the
package, we now recommend a 'go get' command to add a requirement on
the highest replaced version.

Fixes #41416

Change-Id: Iedf3539292c70ea6ba6857433fd184454d9325da
Reviewed-on: https://go-review.googlesource.com/c/go/+/263146
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modfetch/pseudo.go
src/cmd/go/internal/modload/import.go
src/cmd/go/testdata/script/mod_get_replaced.txt
src/cmd/go/testdata/script/mod_replace_readonly.txt