6 Oct 2024 |
Lulu | I don't know if this is the right place to ask, but I would like to contribute code to lix but I don't understand how pull requests work here. I tried doing it through Gerrit but couldn't figure it out. Do I need to be granted permissions for that? | 20:59:25 |
K900 | I don't think you need permission to open a CL | 20:59:51 |
K900 | But Gerrit is... an acquired taste | 20:59:58 |
K900 | git-gr from nixpkgs is a nice tool to make it easier | 21:00:10 |
Lulu | Ok, I'll try it. I tried to create a change through the UI of Gerrit and it told me to push my changes and I don't understand where I'm supposed to push them and how. I'm guessing it's not based on forks? | 21:02:49 |
K900 | It is not | 21:03:50 |
K900 | The easiest workflow is to just clone the repo from Gerrit and then git gr push | 21:04:26 |
Lulu | Ok. And should I create a branch? | 21:04:45 |
K900 | https://wiki.lix.systems/books/lix-contributors/page/gerrit | 21:05:20 |
K900 | Actually this probably explains things better than I can right now | 21:05:31 |
Lulu | Thank you :) | 21:05:43 |
Lulu | I'll read it | 21:05:47 |
szlend | In reply to @szlend:matrix.org Somehow I'm getting this error user '_nixbld4' in the group 'nixbld' does not exist , right after running the installer, even though I'm not on Sequoia. I run a nix build in CI on a fresh MacOS VM every time, and it seems to happen sporadically. Any ideas how to debug this? This issue is not new, I've been running into it for as long as I remember. Re: _nixbld4 does not exist issue. It appears if you loop through all the nixbld users and update their details (doesn't matter what), it fixes the issue. So this kind of supports my idea that this is some sort of MacOS system bug | 22:01:11 |
szlend | I'm not 100% sure yet, I'll keep running this for a while and see if it props up again | 22:01:37 |
Lulu | I think I manage to figure out how to use Gerrit more or less. Thanks again, K900! | 22:06:33 |
szlend | Does the lix/nix-installer create users in parallel? I think that might be the issue | 22:26:24 |
KFears (tragedy arc) | It doesn't. It uses dscl to create users, and the way it does it is pretty cursed | 22:35:05 |
KFears (tragedy arc) | Any chance you could file a bug with all the info on lix-installer repo? I'll try to see if I'm able to fix it | 22:35:41 |
szlend | I'll have a look tomorrow. Though it's pretty tricky to reproduce. | 22:57:43 |
7 Oct 2024 |
KFears (tragedy arc) | That's understandable | 00:00:11 |
KFears (tragedy arc) | Any info is valuable in cases like these | 00:00:39 |
| Serafine Karayan joined the room. | 00:45:50 |
puck | In reply to @szlend:matrix.org Re: _nixbld4 does not exist issue. It appears if you loop through all the nixbld users and update their details (doesn't matter what), it fixes the issue. So this kind of supports my idea that this is some sort of MacOS system bug hrmmmm, it could be cache and/or just taking a bit to sync; especially because it's "right after running the installer" | 01:54:06 |
daagaak | Killing opendirectoryd (or odutil reset cache ) will clear out anything that's cached if that's the case | 05:21:08 |
szlend | In reply to @puck:puck.moe hrmmmm, it could be cache and/or just taking a bit to sync; especially because it's "right after running the installer" It doesn't refresh by itself, even a few minutes after installing. I know this because I had a retry set up a few minutes after the failure. The only way I've got it to refresh so far has been to update the user details | 07:04:17 |
szlend | In reply to @daagaak:matrix.org Killing opendirectoryd (or odutil reset cache ) will clear out anything that's cached if that's the case That's a good idea. I'll try it out. Though it's interesting that dscl does report that the user is there. It's getpwnam that fails. So I hope it resets the right cache | 07:06:06 |
szlend | Can confirm this works too | 08:14:07 |
szlend | * Can confirm odutil reset cache works too | 08:14:25 |
KFears (tragedy arc) | Hmm, so the cache is wrong and gives errors, but the OS stuff is fine? | 09:33:56 |
| Sam Lehman changed their profile picture. | 14:24:46 |