-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to read nixos-rebuild output correct #116
Comments
Update: seems to be related to unbuffer |
Can you please share the command you ran? |
unbuffer nixos-rebuild switch --flake .#Rory-nginx -j`nproc` --upgrade-all --log-format internal-json -v |& nom --json |
I am surprised that this is working at all. But I agree it’s weird that it works for some lines and doesn‘t for others. |
if this is marked as an enhancement, i wonder if we could get a |
The wish for a nom supported nixos-rebuild has been voiced before. And is definitely an open feature request. But I think it is more about changing nixos-rebuild than solving this in nom. The enhancement request that I see in this issue would be "make the --json parser cleanly pass-through non json lines and correctly detect all json lines." I consider this an enhancement and not a bug because the --json parser was never supposed to be used on non-json input. |
what i personally ended up doing was using
|
does anyone know if there are any downsides to @TheArcaneBrony's approach? seems pretty good to me, all things considered :) |
No, that’s basically what I do. |
You might find the nh cli helper particularly useful when it comes to using |
Output is spammed with
@nix {"action":"start"...
and seems to miss a lot of steps.The text was updated successfully, but these errors were encountered: