Let's assume that I have a Go project that depends on 2 different private repositories from github. I'm using deployment keys, for github authentication. I'm trying to set up CI to build, test and deploy the whole thing.
CI created environment with all 2 deploy ssh keys in place (lets call them ~/.ssh/key1 and ~/.ssh/key2)
When I run go build, it tries to download all dependencies at once. How can I avoid exception that repo does not exist (due to authentication issues)? How would you approach solving that problem?