DEV Community

Discussion on: Speeding up Go Modules for Docker and CI

Collapse
 
ankushchadha profile image
ankush chadha

Great article. An additional way to speed up the build is how effectively the initial cache can be populated via the GOPROXY protocol that involves downloading go modules via https. There are public GOPROXY available such as GoCenter (gocenter.io) that will further speed up the build process as a lot of git clones are avoided by the client-side.

The added advantage of using GOPROXY is that if there is a need to rebuild the cache, then reproducibility is guaranteed that is not the case if pointing to VCS directly.