Hacker News new | ask | show | jobs
by macki0 1 day ago
The issue I forsee (that no one seems to be mentioning) with everyone moving off of GitHub to self hosted Git forges is what happens when a maintainer looses interest

On GitHub, a maintainer can just archive the repo and walk away. It costs them nothing, and the code is still there for anyone to read/use/fork.

With a self-hosted forge, keeping the code online isn't free. Someone has to pay for the server+domain, keep the forge software patched etc. That's ongoing money and time for a project they've already stopped caring about. So the easiest option becomes turning the instance off and then the code is lost.

15 comments

Git is already decentralised. If a repo goes offline that people use, they already have a cloned copy they can continue the project on.
I think they're very obviously talking about the instances in which people don't have a local copy already stored.
If nobody has a local copy then that would suggest nobody is using it. So the problem is moot.
Someone having a copy doesn't mean anyone can access it. No? This feels like fitting the problem into the solution, instead of the other way around. I believe the centralization of repositories in a free, publicly-accessible way is important.
Local clones can be reloaded. ;) like I said, git is decentralised by design. So a local copy can be shared in exactly the same ways that the copy on GitHub was. And it can be reloaded to GitHub too, if that’s really people’s preference.

We have already had plenty of examples of this happening already. Such as yt-dl (or whatever you YouTube downloader app is called). GitHub keeps taking down and people keep reuploading it.

And it’s not just git repos either. Anything that is remotely popular and then gets taken down ends up online again, shared by someone else. Like DCMAed videos.

This doesn’t mean that there isn’t benefit in archival efforts. But it does mean that git projects aren’t lost if the origin goes offline.

And so it goes.

Most people avoid unmaintained projects, although having access to the code in perpetuity is definitely a valuable educational resource.

Internet Archive should probably archive code too.

If there was any outside contributor to carry the torch, their local repo has all the code, and they need to choose to host it elsewhere. The comments, discussions and issues are lost, but the code would survive.
Maybe we shouldn’t archive every piece of code forever. Maybe some of it is ok to lose.
Another thing I would miss as a result of the breakdown of the de-facto 'commons' is the ease of searching how other people have written similar code or configured their dotfiles. A code-specific search engine will be great. It wouldn't cover private forges, but I guess it's an inevitable trade-off.
You can always "abandon it" back on Github, or Sourceforge, or any of the other forges (where it's acceptable to do that...).

Post it all to a static site, feed it to archive.org, and then leave.

But then, if no one ever forked it, does the collapse of the repo make a sound?

Doesn't really help with the sudden loss of the maintainer, but that's more of an estate planning issue.

It's effort on the maintainer's part, which if they're at the point of abandoning the project they're less likely to spend.
They could do something similar to how Ffmpeg and other projects do, where they have a mirror of the repo on Github.

    ...this will have a negative impact on PocketBase's popularity

This is not a commercial project. The project's popularity has no value for me and as I mentioned several times in the past I'll trade it immediately for a smaller but more active community of users that actually use PocketBase and willing to engage in constructive manner.

    ...why you don't even want to consider a read-only GitHub mirror

Because it is an extra work for me and I don't want to depend on GitHub anymore.
You can always slap it behind a serverless firewall like cloudflare access. I have multiple firewalls for mine and a tailscale proxy exception that runs only when I actually turn on my machine to push something.
> So the easiest option becomes turning the instance off and then the code is lost.

The mistake you're making is in that the maintainer owes anyone else anything.

So they shut down the instance after they've lost interest. If other people have recent clones of repos they care about, they can upload them somewhere else and work on them wherever they want.

If not, oh well, that's life.

In a way, I don't see this as an "issue" as you've framed it; it's a feature.

We see the problem but it's not that one-sided. Many people rushed over to gitlab when microslop acquired github. Microslop's response was "Hey, wait up, we are no longer the company that abused it's position and monopoly in the early 2000's, we are the good guys now, trust us". Many of us had watched that episode before. A few years after those statements, everything pushed to github is piped directly into openAI and Anthropic and while many people fail to understand the implications, some of us do. Most recently I migrated to Codeberg and started donating to them: I approve of their philosophy and I was pleasantly surprised by how little downtime they have, ironically even compared to github. I have a few small open source projects which I work on every now and then with a few bigger ones which I plan to open source at some point when I feel like they are ready. Losing interest is a possibility of course and I haven't maintained several for many years but they are still there. Anyone is welcome to contribute. And anyone is free to fork them. If something were to happen to codeberg, sure, I'll migrate them elsewhere. If something were to happen to both me and codeberg at the same time, then if no one has a copy, then no one is using them so nothing critical is lost: I'm sure the world would be just fine without a dart implementation of scikit-learn or ssh-like shell over meshtastic(the former hasn't been updated in like 5+years). For larger projects: thousands of people have thousands of repos cloned on their computers - I have like 200 repos that are constantly kept up to date with a cronjob - I've identified them as critical so I prefer having a copy. There are many individuals that do that as well, not to mention companies. If anything seeing people migrating away from github instantly gain my respect and I'm far more likely to contribute to their projects seeing them run away from that slophole.
Nature solves things the same way.

Use it or lose it.

Probably a lesson there.

Maybe an archiving service could preserve it.
The "archiving service" is another forge. Most of them can do pull mirrors. It's not a bad idea to mirror your used dependencies to your own forge instance.
I thought like if archive.org had git
This issue was forseen by Radicle [0].

As long as 1 node seed a repo it cannot be lost.

- [0] https://radicle.dev/

Clone stuff you are interested in. This for absolutely everything, including the stuff on GitHub.
Just let AI companies do the hard work of archiving everything and then use the LLMs to reproduce the code /s