Skip to content
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

Ignore Erroe: file does not exist in binary cache #134

Open
Cryolitia opened this issue May 6, 2024 · 3 comments
Open

Ignore Erroe: file does not exist in binary cache #134

Cryolitia opened this issue May 6, 2024 · 3 comments
Labels
enhancement New feature or request needs-triage

Comments

@Cryolitia
Copy link

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.

@Cryolitia Cryolitia changed the title Ignore Erroe: file does not exist in binary cache Ignore Erroe: file does not exist in binary cache May 6, 2024
@SuperSandro2000
Copy link
Contributor

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.

@maralorn
Copy link
Owner

maralorn commented May 6, 2024

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?

@maralorn maralorn added enhancement New feature or request needs-triage labels May 6, 2024
@Cryolitia
Copy link
Author

Cryolitia commented May 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants