]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: in readonly mode, do not read go.mod files missing checksums
authorBryan C. Mills <bcmills@google.com>
Fri, 12 Mar 2021 16:28:05 +0000 (11:28 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 16 Mar 2021 13:06:17 +0000 (13:06 +0000)
commit120b9eb1c38f9b074cd3f284647e0735348fa1f4
tree070caa499482582f28dc6155db95d0b481f9ac3a
parent26c32de7c9a6bb54d0144d1cc2f00cc334778cac
cmd/go/internal/modload: in readonly mode, do not read go.mod files missing checksums

This was causing test failures while revising CL 293689: splitting the
roots out from the rest of the module graph may allow 'go list -e' to
proceed even when the rest of the module graph can't be loaded (e.g.
due to missing go.mod checksums). If that occurs, it becomes more
important that the moduleInfo helper function itself avoid fetching
unchecked files.

For #36460

Change-Id: I088509eeb3008cc6e8bfe85a00ec2bf500bf9423
Reviewed-on: https://go-review.googlesource.com/c/go/+/301371
Trust: Bryan C. Mills <bcmills@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>
src/cmd/go/internal/modload/build.go