# GitHub was purchased by Microsoft

**URL:** https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313
**Category:** Development
**Created:** [June 4, 2018, 9:15pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313 "2018-06-04T21:15:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![teozkr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teozkr/32/31793_2.png) [@teozkr](https://discourse.nixos.org/u/teozkr)
#### Post date: [June 4, 2018, 9:15pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/1 "2018-06-04T21:15:38Z")

</div>

Does the NixOS project have any interest in moving? If so, to where?

---

<div class="post-metadata">

### Author: ![Ekleog](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ekleog/32/50_2.png) [@Ekleog](https://discourse.nixos.org/u/Ekleog)
#### Post date: [June 4, 2018, 9:58pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/2 "2018-06-04T21:58:44Z")

</div>

As far as I know there isn’t much better than github _right now_. (I’m  
still waiting for federated PRs before picking a git server,  
personally). All other systems either have no developer community, or  
isn’t much better than github (hear: gitlab).

However, I think there may be a point in moving **the bug tracker** :  
it’s the part that’s most at risk (all the rest of the work done could  
very easily be recovered by anyone’s git repository, so _this_ is not an  
issue), and anyways there were already issues with github’s bug tracker  
(impossible to give people rights only on the bug tracker without making  
them committer, etc.).

That said, I don’t know of a usable bug tracking system (hear: with as  
much bling bling as github does) with the requested features and that  
could be very easily used with a github account (because I think  
requiring everyone to create an account on the bug tracker just for  
posting an issue would be a big usability issue). If you know one maybe  
a move could be imagined?

---

<div class="post-metadata">

### Author: ![teozkr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teozkr/32/31793_2.png) [@teozkr](https://discourse.nixos.org/u/teozkr)
#### Post date: [June 5, 2018, 12:50am UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/3 "2018-06-05T00:50:42Z")

</div>

I’m not really aware of anything particularly fancy, I’m afraid. I’m looking into moving my own repositories onto a self-hosted GitLab instance.

---

<div class="post-metadata">

### Author: ![Ekleog](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ekleog/32/50_2.png) [@Ekleog](https://discourse.nixos.org/u/Ekleog)
#### Post date: [June 5, 2018, 1:52am UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/4 "2018-06-05T01:52:39Z")

</div>

Self-hosted GitLab (or gitea, or anything else) instances have a huge  
drawback: they require all contributors, from the issue reporter to the  
contributor, to have an account on it.

So I don’t think that’s viable for NixOS. Well, until a federation  
system exists where we can say “you got a choice between making an  
account here or using an account on one of your servers or any other  
federated server”, but that’s not coming yet, though I’m seeing much  
more movement in this domain since the purchase was announced.

The reason why I have hopes for a bugtracker is because, sure, it’d make  
the part of “getting us independent of GitHub” done (migrating a git  
repo is basically free if anything goes wrong), but mostly because it’d  
bridge a gap that’s already felt in the way people contribute (having  
non-committers tag PRs, etc.). Oh, and because I have higher hopes for a  
bugtracker properly implementing remote accounts than I have for a git  
webui.

For instance, MantisBT looks like pretty featureful (including OAuth and  
even “anonymous login”), but… it looks bad. Missing the required bling  
bling of nowadays’ web.

So I’m not sure there is a good solution right now, unfortunately… That  
said hopefully others would have more clues?

---

<div class="post-metadata">

### Author: ![teozkr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teozkr/32/31793_2.png) [@teozkr](https://discourse.nixos.org/u/teozkr)
#### Post date: [June 5, 2018, 8:03am UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/5 "2018-06-05T08:03:55Z")

</div>

It’s not true federation, but it looks like GitLab supports OAuth, so you could allow people to log in with their Google/FB/GitHub/BitBucket/GitLab.com accounts.

---

<div class="post-metadata">

### Author: ![gmarmstrong](https://discourse.nixos.org/user_avatar/discourse.nixos.org/gmarmstrong/32/208_2.png) [@gmarmstrong](https://discourse.nixos.org/u/gmarmstrong)
#### Post date: [June 5, 2018, 1:16pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/6 "2018-06-05T13:16:06Z")

</div>

The GitLab folks seem to have a lot of interest in improving federation in the future:

- [Federated search](https://gitlab.com/gitlab-org/gitlab-ce/issues/46309)
- [Federated discovery](https://gitlab.com/gitlab-org/gitlab-ce/issues/36025)
- [Federated merge requests](https://gitlab.com/gitlab-org/gitlab-ce/issues/4013)
- [Federation with ActivityPub(!)](https://gitlab.com/gitlab-org/gitlab-ce/issues/44486)

---

<div class="post-metadata">

### Author: ![danbst](https://discourse.nixos.org/user_avatar/discourse.nixos.org/danbst/32/83_2.png) [@danbst](https://discourse.nixos.org/u/danbst)
#### Post date: [June 5, 2018, 2:05pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/7 "2018-06-05T14:05:55Z")

</div>

Whats the fuss? What has changed for nix with that purchase?

---

<div class="post-metadata">

### Author: ![xte](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/x/7cd45c/32.png) [@xte](https://discourse.nixos.org/u/xte)
#### Post date: [June 5, 2018, 3:14pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/8 "2018-06-05T15:14:01Z")

</div>

Hello,  
sorry for the intrusion but… Does really Nix{,OS} development  
need such services? I mean historic BIG projects like Linux, Emacs,  
Gcc, … are developed, even today, simply via mail, of course with  
good MUAs their devs know well how to use them, well integrated in  
SCM (like what we can get with Emacs+notmuch+magit, (Neo)Vim etc).  
Some of them have also WebUI but all the project run around a  
mailing-list. There is a nice LWN article on that “classic” model:

> **[Why kernel development still uses email \[LWN.net\]](https://lwn.net/Articles/702177/)**
>
> In a world full of fancy development tools and sites, the kernel project's
> dependence on email and mailing lists can seem quaintly dated, if not
> positively prehistoric. But, as Greg Kroah-Hartman pointed out in a Kernel 
> Recipes talk titled "Patches...

NixOS already have a very nice experiment (1) of a decentralized  
distro model, ZeroNet for websites is also another limited option.  
We do not have anything that can work-out-of-the-box but distributed  
or at least decentralized solution have enough developed to draw a  
possible evolution path and GitHub&c does not change tomorrow.

IMVHO in 2018 it’s time to think about going distributed simply  
because in the past universities play a role in FOSS community,  
have resources and so offer hosting, mirror services etc for free  
many big companies do the same but that’s not true today. Choose  
“another GitHub” does not solve _anything_, simply temporary patch  
a potential problem and communities have not enough resources to  
afford classic “client-server” model.

Sorry for my poor English

(1)

[https://sourcediver.org/blog/2017/01/18/distributing-nixos-with-ipfs-part-1/](https://sourcediver.org/blog/2017/01/18/distributing-nixos-with-ipfs-part-1/)  
[NixIPFS · GitHub](https://github.com/NixIPFS)

– Ingmar

![](https://discourse.nixos.org/uploads/default/original/1X/23a8d201efa0a2f0176ba5b9aed6ae01a1173452.gif)

---

<div class="post-metadata">

### Author: ![teozkr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teozkr/32/31793_2.png) [@teozkr](https://discourse.nixos.org/u/teozkr)
#### Post date: [June 5, 2018, 8:07pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/9 "2018-06-05T20:07:33Z")

</div>

Looks like the current NixOS Gitlab module is somewhat broken, sadly. After [#41495](https://github.com/NixOS/nixpkgs/pull/41495) it will at least run, but services that require Gitaly (such as creating a repository) are still broken.

> [@danbst](#):
>
> Whats the fuss? What has changed for nix with that purchase?

GitHub is now owned by a company that directly competes with NixOS (Windows, Windows Server), and has previously shown itself to be ridiculously hostile to both the FOSS community (SCO lawsuit, Halloween documents, “Linux is a cancer”, Secure Boot (especially for ARM devices), etc) and their users (Windows 10 telemetry, forced updates, Office switching to a subscription model, etc).

> [@xte](#):
>
> IMVHO in 2018 it’s time to think about going distributed simply  
> because in the past universities play a role in FOSS community,  
> have resources and so offer hosting, mirror services etc for free  
> many big companies do the same but that’s not true today. Choose  
> “another GitHub” does not solve _anything_ , simply temporary patch  
> a potential problem and communities have not enough resources to  
> afford classic “client-server” model.

You still need some form of client-server model, both for hosting the mailing lists and as a place for users to download the repository from.

---

<div class="post-metadata">

### Author: ![ryantm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ryantm/32/900_2.png) [@ryantm](https://discourse.nixos.org/u/ryantm)
#### Post date: [June 5, 2018, 10:34pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/11 "2018-06-05T22:34:03Z")

</div>

> [@teozkr](#):
>
> GitHub is now owned by a company that directly competes with NixOS (Windows, Windows Server), and has previously shown itself to be ridiculously hostile to both the FOSS community (SCO lawsuit, Halloween documents, “Linux is a cancer”, Secure Boot (especially for ARM devices), etc) and their users (Windows 10 telemetry, forced updates, Office switching to a subscription model, etc).

Because it’s hard to move the non-git-repository parts of our GitHub presence, the pain of switching to another service is probably about equal to the maximum pain Microsoft could inflict on us. Is there something worse you are imagining they can do than to suddenly delete all our issues, PRs, etc?

I have a theory that nixpkgs helps GitHub as a real-world stress test.

---

<div class="post-metadata">

### Author: ![Ekleog](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ekleog/32/50_2.png) [@Ekleog](https://discourse.nixos.org/u/Ekleog)
#### Post date: [June 5, 2018, 10:53pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/12 "2018-06-05T22:53:08Z")

</div>

Yes, there is worse: deleting all the issues, PRs, etc. without us  
having time to backup / migrate them first.

Currently, I seem to remember there is an API for extracting all this  
data from GitHub. Migrating exactly the issues / PRs onto another more  
controlled system (what I’m proposing) would mean that this last part of  
the project that is “in the hands of GitHub thus Microsoft” would be safe.

That said I’m also proposing this as issues were already noted with the  
GitHub issue tracker, otherwise I don’t think it’d be worth it.

---

<div class="post-metadata">

### Author: ![xte](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/x/7cd45c/32.png) [@xte](https://discourse.nixos.org/u/xte)
#### Post date: [June 6, 2018, 11:06am UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/13 "2018-06-06T11:06:12Z")

</div>

Hello,

> You still need some form of client-server model, both for hosting  
> the mailing lists and as a place for users to download the  
> repository from.  
> True, but migrating a ml is relatively easy, loosing nothing;  
> migrate from a proprietary platform to another maybe not as  
> easy and some information maybe lost… To be more specific  
> actual GitHub alternatives are relatively few, actual ml vendor  
> are many, scattered around the world, with an enormous set  
> of offers.

I do not say anything can be moved to a distributed solution  
right now, but some thing can be moved, some other can be  
moved form “proprietary” solution to open and standard ones,  
some other can be studied with attention.

If Plan9, at it’s time, was able to design a, reasonably working,  
thing we can’t have with today’s tech… Well something is surely  
wrong IMVHO and it’s time to rethink evolution.

– Ingmar

![](https://discourse.nixos.org/uploads/default/original/1X/23a8d201efa0a2f0176ba5b9aed6ae01a1173452.gif)

---

<div class="post-metadata">

### Author: ![teozkr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/teozkr/32/31793_2.png) [@teozkr](https://discourse.nixos.org/u/teozkr)
#### Post date: [June 6, 2018, 2:20pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/14 "2018-06-06T14:20:00Z")

</div>

> [@ryantm](#):
>
> Because it’s hard to move the non-git-repository parts of our GitHub presence, the pain of switching to another service is probably about equal to the maximum pain Microsoft could inflict on us. Is there something worse you are imagining they can do than to suddenly delete all our issues, PRs, etc?

GitLab’s import-from-GitHub feature seems to migrate everything (git, issues, PRs) in one go, linking everything to the corresponding GitLab accounts if they have one.

---

<div class="post-metadata">

### Author: ![ryantm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ryantm/32/900_2.png) [@ryantm](https://discourse.nixos.org/u/ryantm)
#### Post date: [June 6, 2018, 3:08pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/15 "2018-06-06T15:08:14Z")

</div>

Additional discussion here [Move from GitHub long-term · Issue #41448 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/issues/41448#issuecomment-394522865)

---

<div class="post-metadata">

### Author: ![zimbatm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/zimbatm/32/4_2.png) [@zimbatm](https://discourse.nixos.org/u/zimbatm)
#### Post date: [June 6, 2018, 3:41pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/16 "2018-06-06T15:41:50Z")

</div>

The biggest problem we have with GitHub right now is not Microsoft, it’s the lack of mapping between a package and it’s maintainer(s).

Let’s say that I am the maintainer of the `direnv` package, I won’t automatically get notified if a new issue is opened for that package. Even if I am notified, I can’t merge changes unless I am given write access to the whole of nixpkgs. If the package is out of date, there is no great way for me to track this. All the other serious distros have a solution for this.

For example ArchLinux maintains a “core” repository for the base distro and then has individual repos in AUR for all the extra packages. As a package maintainer I am given my own git repo where users can post issues to it.

Debian has a repository with issue tracker for each package. Canoncial built their own solution as well.

@peti gave a great talk last NixCon on OpenSuse and how they handle the packaging problem. Each maintainer has their own project where they can issue builds against different releases. OBS seems like a great self-service platform.

While looking for a GitHub replacement I would really like us to consider these and maybe look at other package repositories to see how they are doing. Most likely this would require us to change how nixpkgs is being composed.

---

<div class="post-metadata">

### Author: ![manveru](https://discourse.nixos.org/user_avatar/discourse.nixos.org/manveru/32/23_2.png) [@manveru](https://discourse.nixos.org/u/manveru)
#### Post date: [June 6, 2018, 4:01pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/17 "2018-06-06T16:01:50Z")

</div>

Indeed, that’s my biggest gripe with nixpkgs atm. I don’t think it can be maintained efficiently as a single monolithic repository on GitHub anymore.  
I’m against moving nixpkgs itself from GitHub unless there’s actually an issue with MS, since that’d take a rather huge amount of effort until all the integrations and tooling and links catch up, and we don’t have that much time to spare.

But with the advent of cachix, maybe we could finally start a community repo, slowly migrating our apps out of nixpkgs into individual control?

What would change is that you basically have an additional mirror and channel entry in your config, and the community repos can reference specific snapshots of nixpkgs as base.

Where things get weird is referencing other dependencies from the community repos, which i’m not sure is possible without I(mport)F(rom)D(erivation). But I think a lot of projects would benefit from more relaxed rules immensely, so that could be a good thing.

---

<div class="post-metadata">

### Author: ![timokau](https://discourse.nixos.org/user_avatar/discourse.nixos.org/timokau/32/40_2.png) [@timokau](https://discourse.nixos.org/u/timokau)
#### Post date: [June 6, 2018, 4:03pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/18 "2018-06-06T16:03:08Z")

</div>

I’m not suggesting GitHub is a perfect fit for nixpkgs (I would prefer GitLab, but that doesn’t really address your points), but I don’t entirely agree with all your arguments either.

> Let’s say that I am the maintainer of the direnv package, I won’t automatically get notified if a new issue is opened for that package.

Couldn’t that be easily fixed by a bot now that `meta.maintainers` contains GitHub usernames and package names are supposed to be in the commit messages anyways?

> Even if I am notified, I can’t merge changes unless I am given write access to the whole of nixpkgs.

I think that can be viewed as a feature. While unfortunately parts of nixpkgs are not up to the standards of the official repositories of some big distros, the quality/level of trust is still higher than in the AUR.

That is because changes have to go through the PR process (except those of maintainers, but if I understand correctly that is supposed to change).

> If the package is out of date, there is no great way for me to track this.

What do you mean by that? Like an `outdated` flag on the AUR? Why not just create an issue?

As opposed to the AUR, you could even fix it yourself and submit a PR. Thats another advantage of the current system: packages are much more community maintained and not really “owned” by a single maintainer.

---

<div class="post-metadata">

### Author: ![7c6f434c](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/7/8e7dd6/32.png) [@7c6f434c](https://discourse.nixos.org/u/7c6f434c)
#### Post date: [June 6, 2018, 4:08pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/19 "2018-06-06T16:08:52Z")

</div>

> While looking for a GitHub replacement I would really like us to consider these and maybe look at other package repositories to see how they are doing. Most likely this would require us to change how nixpkgs is being composed.

Not only package repositories — Rust has bors as a bot.

A benefit of an open source solution — even if we use a hosted version —  
would be that it is possible to make integration tests for bots that  
merge in the name of a user, and if we have a bot that we can test  
end-to-end it can be much less scary to hack on it… Especially for  
newcomers to the bot development.

(there if ofborg, and there are people who are currently working on the  
mock environment for testing it, and if that environment could include  
a real copy of the target repository, that would be nice indeed)

---

<div class="post-metadata">

### Author: ![zimbatm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/zimbatm/32/4_2.png) [@zimbatm](https://discourse.nixos.org/u/zimbatm)
#### Post date: [June 6, 2018, 5:04pm UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/20 "2018-06-06T17:04:50Z")

</div>

> [@timokau](#):
>
> > Let’s say that I am the maintainer of the direnv package, I won’t automatically get notified if a new issue is opened for that package.
> 
> Couldn’t that be easily fixed by a bot now that `meta.maintainers` contains GitHub usernames and package names are supposed to be in the commit messages anyways?

This doesn’t work for issue submission since the user is not forced to select the affected package. But I agree that a bot like ofborg could be added some more heuristics to try and map issues back to maintainers. That would tie us even further to github though.

---

<div class="post-metadata">

### Author: ![Ekleog](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ekleog/32/50_2.png) [@Ekleog](https://discourse.nixos.org/u/Ekleog)
#### Post date: [June 7, 2018, 12:30am UTC](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313/21 "2018-06-07T00:30:30Z")

</div>

That would tie us even further to ofborg, not really to GitHub.

My last reading of ofborg code was that it had a specific GitHub comment  
parser and comment writer, so that would be the only piece of code that  
would need to be rewritten would be these two elements. And it turns out  
[crates.io](http://crates.io) appears to have a crate for GitLab as well as the one for  
GitHub that is currently used, so even though the migration would likely  
not be obvious, it should still be possible and not as bad as rewriting  
things from scratch.

[Next page](https://discourse.nixos.org/t/github-was-purchased-by-microsoft/313.md?page=2)
