As an example, Go build could fail anywhere if a dependency module from Github is not available.

Any module that is properly tagged and contains an OSS license gets stored in Google's module cache indefinitely. As long as it was go-get-ed once before, you can pull it again without going to GitHub (or any other VCS host).

Does go build not support mirrors so you can define a fallback repository? If not, why?