Migrating the Main Zig Repository from GitHub to Codeberg

Migrating the Main Zig Repository from GitHub to Codeberg

November 27, 2025

### Zig’s Big Move: Why the Main Repository Left GitHub for Codeberg

In a decision that has sparked widespread discussion across the open-source landscape, the Zig Software Foundation has officially migrated the main Zig language repository from GitHub to Codeberg. This isn’t just a change of URL; it’s a principled stand that reflects the core ethos of the Zig project and raises important questions about the infrastructure that underpins modern software development.

For years, GitHub has been the undisputed hub of open-source collaboration. Its massive network effect, familiar interface, and robust tooling made it the default choice for projects big and small. So, why would a prominent and growing project like Zig choose to leave? The reasons are multi-faceted, stemming from a deep-seated commitment to Free and Open Source Software (FOSS) principles.

#### A Commitment to FOSS Infrastructure

At its heart, the migration is about “drinking your own champagne.” The Zig project champions transparency, control, and freedom from corporate centralization. GitHub, despite its invaluable role in the community, is a proprietary, closed-source platform owned by Microsoft.

Codeberg, on the other hand, is a non-profit platform built on Gitea, a FOSS alternative to major git forges. By moving to Codeberg, the Zig Software Foundation is not only using a tool that aligns with its values but is also directly supporting the FOSS ecosystem it inhabits. The move signals a desire to rely on infrastructure that is as open and community-driven as the software it hosts.

#### The Shadow of AI and Data Training

A significant catalyst for this move, and a major point of contention in the broader community, has been GitHub Copilot. The tool’s training on vast amounts of public code, often without the explicit consent of the original authors, has raised serious ethical and legal questions about licensing and ownership.

For a project like Zig, which places a high value on developer intent and software licensing, having its code used to train a proprietary commercial product was a fundamental conflict. Migrating away from the platform was seen as the only definitive way to opt out and make a clear statement against these practices.

#### Community Reactions: Principle vs. Pragmatism

The announcement was met with a spectrum of reactions, highlighting a central tension in the open-source world: ideology versus pragmatism.

**Supporters** have hailed the decision as a brave and necessary step. They see it as leading by example, encouraging other projects to reconsider their reliance on centralized, corporate-owned platforms. For them, this is a crucial move to protect the long-term health and independence of the FOSS ecosystem. It’s a vote for a future where the tools used to build open software are themselves open.

**Critics and concerned observers**, however, have raised practical concerns. They argue that leaving GitHub voluntarily surrenders the project’s immense network effect. Discoverability may be reduced, and potential contributors might be deterred by the friction of needing to create an account on a less familiar platform. They worry that the move, while principled, could slow the project’s growth and adoption by isolating it from the mainstream development hub.

#### The Logistics of a Great Migration

The Zig Software Foundation has been careful to manage the transition. The GitHub repository has not been deleted but has been archived, becoming a read-only mirror. This ensures that old links, forks, and clones don’t suddenly break. Issues and pull requests have been systematically migrated to the new Codeberg repository, preserving years of valuable project history and discussion.

Ultimately, Zig’s migration is more than just a change of address. It’s a landmark event that forces every open-source project to ask itself a critical question: Do the platforms we use align with the values we preach? The success or failure of Zig’s life on Codeberg will be a closely watched test case for the viability of a truly decentralized, FOSS-first future.

Leave A Comment

Effective computer repair and coding solutions from right here in Võrumaa. Your project gets done fast, professionally,
and without any fuss.