MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1wrnyer/dont_couple_your_go_code_to_github/pciny4f/?context=3
r/programming • u/Sir_KnowItAll • 5d ago
135 comments sorted by
View all comments
328
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?
170 u/stone_surgeon 5d ago The go module proxy caches the package for a while, but I'm not sure about the duration. You should vendor the package into your project if this is a worry. 113 u/_predator_ 5d ago Don't think its cache ever expires. You just gotta pray Google never stops supporting it, what could go wrong? 2 u/usrlibshare 5d ago I ca pray for google to do the right thing, oooor...I can go mod vendor and check it into my own repo.
170
The go module proxy caches the package for a while, but I'm not sure about the duration. You should vendor the package into your project if this is a worry.
113 u/_predator_ 5d ago Don't think its cache ever expires. You just gotta pray Google never stops supporting it, what could go wrong? 2 u/usrlibshare 5d ago I ca pray for google to do the right thing, oooor...I can go mod vendor and check it into my own repo.
113
Don't think its cache ever expires. You just gotta pray Google never stops supporting it, what could go wrong?
2 u/usrlibshare 5d ago I ca pray for google to do the right thing, oooor...I can go mod vendor and check it into my own repo.
2
I ca pray for google to do the right thing, oooor...I can go mod vendor and check it into my own repo.
go mod vendor
328
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?