News for hackers. Stuff that matters.
Re:Go Module Mirror and Checksum Database Launched by jrockway on Friday August 30, 2019 @10:09AM (#20838739)
My experience from building docker images of Go programs from Github repositories is that Github very aggressively rate limits you. More than one "go build ..." per 10 minutes and it just randomly won't send you the repository contents anymore. So a module proxy was a must. (You could also vendor dependencies, which is my preference, but my team was strongly opposed to vendoring. So we used Athens.)
Re:Go Module Mirror and Checksum Database Launched by donatj on Friday August 30, 2019 @10:22AM (#20838861)
Are you pulling as an authenticated GitHub user? The rate limit for an authenticated user is 5000 pulls per hour, unauthenticated is 60.
Re:Go Module Mirror and Checksum Database Launched by jrockway on Friday August 30, 2019 @11:10AM (#20839357)
No I am not. I don't even know how to make "go build" authenticate to Github. (It's not my code I'm pulling, it's the random libraries my code depends on.)

This is why the proxy exists.

Re:Go Module Mirror and Checksum Database Launched by thefounder on Friday August 30, 2019 @11:44AM (#20839671)
"go build" doesn't fetch the dependencies, does it? Go uses the local settings (i.e .netrc file in your home directory)
Re:Go Module Mirror and Checksum Database Launched by ownagefool on Friday August 30, 2019 @11:53AM (#20839765)
go build will fetch the dependencies if you don't have them. However, they're stored in the $GOPATH, which now defaults to ~/go I believe. Therefore, chances are you already have them.
Re:Go Module Mirror and Checksum Database Launched by nhooyr on Friday August 30, 2019 @11:35AM (#20839606)
If git is authenticated with GitHub for you, go build is as well.
Re:Go Module Mirror and Checksum Database Launched by nhooyr on Friday August 30, 2019 @11:36AM (#20839611)
This has been a problem on CI if your CI doesn't support caching dependencies.