On Wednesday, September 11, 2019 at 5:33:02 PM UTC-4, Ian Lance Taylor wrote: > > The go tool reports a checksum mismatch error. > > Ian >
"go help module-auth" says If a downloaded module is not yet included in go.sum and it is a publicly available module, the go command consults the Go checksum database to fetch the expected go.sum lines. and ""go help modules" says No matter the source of the modules, the go command checks downloads against known checksums, to detect unexpected changes in the content of any specific module version from one day to the next. This check first consults the current module's go.sum file but falls back to the Go checksum database, controlled by the GOSUMDB and GONOSUMDB environment variables. See 'go help module-auth' for details. By these explanations, is my following understanding correct? 1. when I "git clone" a Go program project which contains a go.mod and a go.sum file. then sumdb will not be connected if I run "go build" under the project. 2. when I "go get" a package under my modules based project, sumdb will be connected to fetch the hash of the dependency package, if the fetch result and local cached dependency hash matches, then two hash lines will be added the go.sum file of my project, if the dependency package is also modules based, in other words, it has its own go.mod and go.sum files, the hashes of the dependency packages of the dependency package will not be fetched from sumdb. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/92d8a563-c454-47aa-a8ff-1bc2131b3d52%40googlegroups.com.