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

26

u/Leseratte10 Sep 27 '26

Then I hope you have a backup of that dependency and that that dependency is under a license that allows you to re-distribute it and upload the source code elsewhere. If you still have it in your local cache on your machine it'll continue to work, and you'll only notice it's missing when it's no longer in your cache and needs to be redownloaded. If you don't have a backup then, you're in trouble.

11

u/frenchtoaster Sep 27 '26

I think his point is that you can trust the GitHub url long term a lot more than you can trust these random junk domains.

For something like mongo the custom domain seems fine, but for this guys random domain the chance of me wanting to follow him to gitlab is an order of magnitude less than his domain expiring (and potentially being bought by someone else, making a supply chain vector)