Re:Google Go: The Good, the Bad, and the Meh
by grey-area on Monday February 11, 2013 @12:47PM
(#5202054)
This is very messy. If a mirror changes, you have to go back through all of your source code and change all of the relevant imports.
Have you run into real-life problems with this or is it more a hypothetical issue?
You can use local package import paths instead if you prefer to manage your dependencies separately (and have several different goroots too with different sets of packages), or use DNS/hosts to manage where your private package server domain points, there are lots of options which don't require specification of a package server in one place.
This is very messy. If a mirror changes, you have to go back through all of your source code and change all of the relevant imports.
I personally find the node.js/npm solution to the problem (separate the dependency mapping for external resources, allow changes to those without having to modify the source) to be more useful. It lets you swap local and remote versions effortlessly and, using a private npm server, maintain packages for a large internal network.