Go 1.17, released on August 16, 2021, introduces module-graph pruning. For modules whose go.mod declares Go 1.17 or higher, the graph includes the immediate dependencies of other Go 1.17 modules rather than their full transitive dependencies. The change concerns the dependency information that the tool needs to follow. [S1]

The Go team says this should avoid downloading or reading go.mod files for dependencies that are not relevant to the work being requested. Its release announcement anticipates time savings in everyday development; it does not establish how much faster a particular application’s build will run. Teams considering the upgrade should distinguish that expected reduction in dependency lookups from a measured result for their own project. [S1]

Source documents

  1. Go 1.17 is releasedhttps://go.dev/blog/go1.17