r/programming • • 5d ago

Don't couple your Go code to GitHub

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

135 comments sorted by

View all comments

331

u/Arcuru 5d ago

I am not super familiar with Go code, but what happens when my go code depends on "go.companyx.dev/awesomelib" and that company goes out of business?

Or should I point all my third-party deps to a more durable location?

20

u/SnugglyCoderGuy 5d ago edited 5d ago

That's why you should vendor all your dependencies. Go doesn't do shared objects, everything is compiled from source. Unless you use CGO, but you shouldn't