| 19 Nov 2025 |
maralorn | Like hexa said it might be that ssh:// does?not support that | 23:03:58 |
Grimmauld (any/all) | I thought it'd just parse the log for Running phase:? Is that not the case? | 23:04:20 |
Grimmauld (any/all) | because that definitely does appear in log output | 23:04:54 |
hexa | do you know the nix json log format? | 23:04:54 |
maralorn | No | 23:04:55 |
Grimmauld (any/all) | i know of its existence and it is being used within nom, i do not know how it is structured | 23:05:38 |
Grimmauld (any/all) | but nom prints the lod output, so surely it can read it too? | 23:05:50 |
Grimmauld (any/all) | * but nom prints the log output, so surely it can read it too? | 23:05:58 |
maralorn | The phase messages are a distinct kind of json objects in the log which simply don't get emitted for ssh:// builds | 23:06:46 |
maralorn | But of course your suggested hack should work | 23:07:41 |
maralorn | Could also give false positives and could be broken by modifications to builder logging in nixpkgs. | 23:09:05 |
maralorn | But tbf that's true for the?current concept as well | 23:09:29 |
Grimmauld (any/all) | tbh i am surprised the json format knows about phases. Isn't that a layer violation? Nix (the evaluator) shouldn't really have knowledge about the concept of stdenv or build phases at all | 23:14:33 |
maralorn | Yes, it totally is. | 23:15:50 |
maralorn | I was abhorred when I learned this. | 23:16:07 |
Grimmauld (any/all) | i hate this damn language | 23:16:12 |
Emma [it/its] | I thought build phases were a builtin ngl | 23:16:43 |
K900 | They're not | 23:16:52 |
K900 | They're an stdenv-ism | 23:16:56 |
maralorn | But nix has some kind of special support for them iirc? | 23:17:45 |
K900 | Yes | 23:18:07 |
Emma [it/its] | Now that i can see making sense, but i would've expected a fifo to be exposed in the build env or something for that purpose | 23:18:50 |
whispers (it/fae) | i don't think it does, it's a printf in nixpkgs stdenv | 23:19:13 |
whispers (it/fae) | https://github.com/NixOS/nixpkgs/blob/ed53e9bfd83a0f16833a17f478b8e11f70462854/pkgs/stdenv/generic/setup.sh#L1708 | 23:19:47 |
Emma [it/its] | Does nix just relay any line that haplens to be json or smth? | 23:19:54 |
Emma [it/its] | Oh huh, i guess theoretically anyone can hook into that | 23:20:55 |
Grimmauld (any/all) | nono, nix definitely has a concept of phases: https://github.com/search?q=repo%3ANixOS%2Fnix%20phase&type=code | 23:21:35 |
Grimmauld (any/all) | it even supports running phases individually ??? | 23:21:48 |
K900 | Layering violation ecks dee | 23:22:04 |
whispers (it/fae) | oh wow that's. horrid | 23:22:10 |