https://pine32.be - © pine32.be 2026
Welcome! - 124 total posts. [RSS]
A Funny little cycle 2.0 [LATEST]


Search 124 posts with 51 unique tags


#1779009248


[ dev | golang | git ]

Last week when moving over to Codeberg (see post 1778177701) I noticed that I am using the github.com domain in my module names. For my projects (like mb) that fine, I just moved it to codeberg.org when moving the repo. But for libraries I can’t expect everybody to change their go.mod file every time I change were I host my code (not that anybody uses my libs but just go with it). Luckily the Go devs have though of this.

When trying to download a module, like github.com/ncruces/go-sqlite3 for example, go will make a http/https request like shown below. The webserver should then provide a special go-import meta tag that where and how it can pull the code.

curl -s 'https://github.com/ncruces/go-sqlite3?go-get=1' | grep go-import
<meta name="go-import" content="github.com/ncruces/go-sqlite3
    git https://github.com/ncruces/go-sqlite3.git">

Most code forges will handle this for you. But you can also deploy your own server on your own domain that handles this. And that is exactly what I have done, setup my own vanity URL. I made a simple stateless webserver for this that just takes a JSON config, source. Currently it will redirect to Codeberg but when I move my repos again I just have to change a basic config file and all modules will keep working as they are supposed to. I just have to make sure that go.pine32.be doesn’t go down. But it is a stateless app running 2 replicas on a highly available Kubernetes cluster, should be fine.

curl -s 'https://go.pine32.be/id?go-get=1' | grep go-import
<meta name="go-import" content="go.pine32.be/id
    git https://codeberg.org/Pineapple217/go-id">

#1778177701


[ dev | git ]

Lately I was already using my Forgejo instance a lot more the GitHub. Mainly for my private projects or projects where I don’t expect/want contributions. I did this because of all the AI data scraping and I don’t trust GitHub anymore. But I haven’t moved my public projects yet because I didn’t want to push my already niche projects to an even more niche platform. But now that GitHub is struggling to keep actual things online (84.35% uptime over last 90 days as of today) the general public is also looking for alternatives. So for me it was finally time to move my code to Codeberg, MB (this blog you are reading now) being the first project to move. Codeberg e.V.is a German non-profit organization that provides a public Forgejo instance that only allows opensource software. So it checks all boxes for me. And yes, I already have donated. Hopefully it can cover some cost of the GitHub refugees.

#1767859312


[ homelab | git ]

Just got my own git forge setup done with Forgejo and added Woodpecker CI. I already didn’t have any builds running on GitHub because I don’t trust them and my lack of trust is only getting more justified by the day. I am happy with this setup for my own semi-private projects. But for project where I would like some contributions I will need some other platform. It will probably end up being Codeberg, basically a public Forgejo instance run as a non-profit by a German team. And also using Woodpecker for CI, so moving over will be easy. It is 24€ per year but seems like a fair price for the service they provide, and they don’t profit of my data.