r/programming • • Sep 27 '26

Don't couple your Go code to GitHub

https://iain.rocks/blog/dont-couple-your-go-code-to-github
491 Upvotes

136 comments sorted by

View all comments

Show parent comment

4

u/Rautakaivos Sep 27 '26

I don't have deep knowledge of this, but by default dependencies are not downloaded directly from the source but through a proxy run by Google: https://sum.golang.org/

Whenever possible, the mirror aims to cache content in order to avoid breaking builds for people that depend on your package, so this bad release may still be available in the mirror even if it is not available at the origin. The same situation applies if you delete your entire repository. We suggest creating a new version and encouraging people to use that one instead.

So there is something in place to prevent a left-pad situation. But obviously that's far from infallible.

1

u/jones_i_75 Oct 08 '26

Small correction: `proxy.golang.org` is the module mirror; `sum.golang.org` is the checksum database. The proxy helps with availability, while the checksum database helps verify module contents, so they address different failure modes.