From the discussion on https://chromium-review.googlesource.com/914510:
It is getting very tedious having to mirror github.com repositories on chromium Gerrit for each new Go package we want to import. We'll soon end up with hundreds of these mirrors if we keep going in this direction.
I was just experimenting and verified that URLs like https://github.com/golang/glog/archive/44145f04b68cf362d9c4df2182967c2275eaefed.tar.gz work for downloading a specific commit from a github repo. I believe we can use this in the ebuilds in a way that's properly cached by our mirrors, with downloaded tarballs that are checksummed and verified by portage.
Adding an ebuild for a Go package on github should be as simple as specifying the repo path, commit hash, and a list of packages to install. The rest should be boilerplate, and mirroring the repo should be unnecessary.
Comment 1 by vapier@chromium.org
, Feb 15 2018