-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Announcement! We've moved to Codeberg #360
Comments
Hi @ratfactor, May I know why it has been moved to other hosting site ? |
I think a mirror sounds best for now. If the GitHub repo is only archived, people who simply run However, I notice that the Codeberg repo history is entirely new - the oldest commit is from last week. I was expecting that the
Previously, the natural way to use Ziglings was:
But if the git history is not preserved, previous users cannot easily:
Instead, previous users are mostly forced to clone the new repo. Could we please make the Codeberg repo contain the GitHub repo history? To be concrete: can we base new Ziglings development on top of the latest commit (7417f01) in the GitHub repo, and force-push to the main branch of the Codeberg repo? |
Thanks for the tip, I was able to implement that. |
Yes, it's because I do not believe GitHub has the best interests of independent/FOSS developers at heart. It is a for-profit company and we are the product. For a longer explanation: http://ratfactor.com/leaving-github (I know it'll be hard, but please try to not get hung up on the 2FA part.) 😄 |
Thanks. Much better than before. But to nitpick, it looks like the git history isn't exactly identical. It seems that:
But commits after 5b47e8e have different refs on Codeberg. Can we fix that? Otherwise, for example:
The latest commit on GitHub is 7417f01, but linking to the same ref in the Codeberg repo is a 404. Ideally, the latter link should work. Please see the below script for a demonstration#!/usr/bin/env bash
set -e
rm -rf /tmp/ziglings-github /tmp/ziglings-codeberg
codeberg_url='https://codeberg.org/ziglings/exercises'
cd /tmp
(
printf "Cloning ziglings from GitHub...\n"
git clone --quiet https://github.com/ratfactor/ziglings ziglings-github
cd ziglings-github
printf "\nRoot commit on main:\n"
git rev-list --max-parents=0 HEAD
printf "\nLatest commit on main:\n"
git log -n1
printf "\norigin remote before migration:\n"
git remote -v
# Migrate remote to new URL
git remote set-url origin "${codeberg_url}"
printf "\norigin remote after migration:\n"
git remote -v
printf "\nPulling main...\n"
git pull origin main
printf "\nLatest commit on main:\n"
git log -n1
)
(
printf "\n=================================\n"
printf "\nCloning ziglings from Codeberg...\n"
git clone --quiet "${codeberg_url}" ziglings-codeberg
cd ziglings-codeberg
printf "\nRoot commit on main:\n"
git rev-list --max-parents=0 HEAD
printf "\nShowing an old commit from GitHub...\n"
git log -n1 5b47e8ebe6cee0b89dbfe5a2ee413f83d3b7e4e0
printf "\nTrying to show the commit that comes after the above one...\n"
git log -n1 7310242ef0d72936ecbfb19014ada896f1b57f2a
) And its output
|
Actually, no. The refs usually take place via email. And if someone has changed his email, or uses a 'noreply' from Github, then the link breaks. But as far as I can tell, the entries are the same.
The link has gone because of adapting the README to the current Zig version. After that I made the changes from ratfactor again. |
Sorry, I should've written more clearly. Commit 7310242 from 2021-02-11 exists on the https://codeberg.org/ziglings/exercises/commit/7310242ef0d72936ecbfb19014ada896f1b57f2a But that link doesn't work, because that commit sha (and the sha of every commit after it) does not exist in the Codeberg repo. Are you saying that's expected? I didn't understand the part about email addresses. It's true that a commit's hash depends on the author email and the committer email, but I was expecting the commits on Codeberg to be identical. I think the email addresses in every commit should be preserved, even if they contain some GitHub noreply addresses, right? |
Thanks, now I understand your point. On my local git repository the entries are valid but after I copied it to codeberg they are lost. I try to figure out why. |
Now I know why this no longer works. Commits from different branches were only taken over in the final phase, so the original commits no longer resolve. Codeberg offers the possibility to migrate them as well, so that the complete repository is restored. This would then also make the links work, but that means another enormous effort. |
Codeberg is noticeably slower than Github:
Also on first fork I got 500. |
If I might add my 2 cents, yes it is. I consider history the most important point of ... working with git, so it would be nice to not lose it. Also, while I (somewhat) understand your point about moving (especially on the burnout aspect), I would appreciate if you would make the GitHub repo a mirror of the main Codeberg. I don't intent (and honestly can't/don't want) to invest the required extra time to track projects being developped outside of GitHub. |
Registration is closed at |
This is surely temporary. I see this message if I try to register on codeberg.org right now:
I certainly don't speak for Codeberg, but I know they're having some growing pains right now. It might get even worse when GitHub starts actually limiting accounts that don't have 2FA enabled. Same thing happens on Mastodon servers when the big social media sites go bad. Tons of new registrations. Give them time to catch up. Worst case, you can send us a patch by email. (Address in commit history.) :-) |
Thanks for clarification. |
Is this planned to be ever fixed? That issue pretty much stopped my work on ziglings because of the issues mentionned above. |
Moved to #366 for visibility. |
As you can see in the README, we've moved Ziglings to Codeberg. The move is for ideological reasons.
Since the only requirement for actually using Ziglings is the ability to clone the repo, this should have no major effect beyond a change of URL when doing a
git clone
to get started.The question is: what should we do with this GitHub version? We could make it a mirror of the Codeberg repo. Or we could archive it. Perhaps there is some third option?
Thanks!
The text was updated successfully, but these errors were encountered: