maralorn / nix-output-monitor

Pipe your nix-build output through the nix-output-monitor a.k.a nom to get additional information while building.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore `Erroe: file does not exist in binary cache`

Cryolitia opened this issue · comments

image

When using a mirror of cache.nixos.org, it's usually generate lots of errors about it. They are less useful and take up a lot of screen space, preventing more useful information from being displayed.

NOM shouldn't decide which errors to display or not. You probably want to reduce the binary cache ttl instead. I did the same and it works wonder.

I see your point. (Love your theming by the way.)

However I am not sure what exactly to do about this. I am reluctant to silently drop an error which is probably relevant to other users. That sounds like a suspicious way of special casing. Maybe we can find a more general solution to make this less a problem?

You probably want to reduce the binary cache ttl instead.

Thanks for pointing out it!


Maybe we can provide a command line argument to suppress specific error types, such as --suppress-error binary-cache-not-exist and other types of error. Or is there any other third party tool that can be plugged into the command pipeline to filter the JSON such as nix build .# --log-format internal-json | [some filter] | nom --json.