‹ BackHN Continuity

Thread

Don't couple your Go code to GitHub

325 points · 177 comments · birdculture

  1. lewo · · focus · HN ↗
    Another way to fix this kind of issues would be to fallback on the Software Heritage which archives the whole GitHub.

    This is something Nix and Guix are trying to achieve: by default, they fetch source code from the original endpoint, but if it doesn't respond anymore, they would query the Software Heritage archive [1].

    Because go mod doesn't use SHA, it makes things a bit more complicated but Nix/Guix encountered the same issue and there are some mechanisms to workaround this issue.

    [1] <a href="https:&#x2F;&#x2F;www.softwareheritage.org&#x2F;2025&#x2F;05&#x2F;21&#x2F;software-heritage-guix-deployment&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.softwareheritage.org&#x2F;2025&#x2F;05&#x2F;21&#x2F;software-heritag...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.