Hi Joe,
As far as I know, I think it is computing the SHA256 of the dependencies:
Personally, I wouldn't expect that to get pathologically worse with more dependencies.
Also, just as you can often sequence 'go mod download' so that you can often take advantage of cached dependencies in CI, there is some chance you could do something similar with 'go mod verify' to avoid that cost every time?
In terms of how it all works, there is a bit more in the documentation here:
"By default, the go command satisfies dependencies by downloading modules from their sources and using those downloaded copies (after verification, as described in the previous section). To allow interoperation with older versions of Go, or to ensure that all files used for a build are stored together in a single file tree, 'go mod vendor' creates a directory named vendor in the root directory of the main module and stores there all the packages from dependency modules that are needed to support builds and tests of packages in the main module."
Regards,
thepudds