cmd/go: document using 'go list' to download modules needed to build packages #38031
Labels
Documentation
FrozenDueToAge
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
go list -test ./...
can be used to download the modules needed to build tests of the packages matched by./...
. This is usually a smaller set of modules thango mod download all
(or equivalentgo mod download
) would select, so it's a useful command when building small Docker images.This should be documented as a FAQ on https://github.com/golang/go/wiki/Modules.
Related #36460: fewer modules will be downloaded by
go mod download all
when lazy module loading is implemented.The text was updated successfully, but these errors were encountered: