‹ BackHN Continuity

Thread

Don't couple your Go code to GitHub

325 points · 177 comments · birdculture

  1. dewey · · focus · HN ↗
    > That is, if you move your git hosting to GitLab then you have to change your code!

    You can also just use "replace github.com/example/example => gitlab.com/example/example" in your go.mod file and everything will keep working. That seems like a very pre-mature optimization for something that doesn't really matter.

    1. kelnos · · focus · HN ↗
      What about everyone else using your code? You are going to ask them all to update their code as well? Many of them probably won't realize, and will get stuck on an old version that never gets updated, even to fix bugs and security issues.
      1. jayd16 · · focus · HN ↗
        By this logic, those folks should be pointing to their own hosted mirrors of the project, no?
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.