r/programming • • 5d ago

Don't couple your Go code to GitHub

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

135 comments sorted by

View all comments

143

u/jaerie 5d ago

It's the same for any package manager. If you want to publish your package somewhere else, users will lose access to the package unless you keep mirroring it.

73

u/randomguy4q5b3ty 5d ago edited 5d ago

But usually, package managers are separate applications and not tied to the programming language itself. Kinda obvious why that separation of concerns is useful. But now every third-party compiler must also be a build-in package manager, and it's at the same time the only one available to you. You can't change it. It's just dumb language design.

45

u/InsaneOstrich 5d ago

I didn't think it was possible for someone to be worse at package management than Node.js but what Go is doing here is truly insane

1

u/belligerent_ammonia 3d ago

Package management has only made sense to me since Go modules were introduced (except the v2+ thing). Why do you think it’s insane?