Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go 'go mod download <package name>' fetches all modules if module cache is empty/missing #40245
What version of Go are you using (
If you were to specify an explicit version for the module, then in theory we would not have to load the dependencies, but we do anyway today. (That is #36812.)
With the proposed lazy loading semantics (#36460), we would make stronger consistency assumptions and load fewer