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

nix flake check should log what it checks #8882

Closed
9999years opened this issue Aug 29, 2023 · 1 comment
Closed

nix flake check should log what it checks #8882

9999years opened this issue Aug 29, 2023 · 1 comment
Labels
feature Feature request or proposal

Comments

@9999years
Copy link
Contributor

As of Nix 2.17.0, when I run nix flake check, the output doesn't tell me what was checked:

$ nix flake check
warning: The check omitted these incompatible systems: aarch64-linux, x86_64-darwin, x86_64-linux
Use '--all-systems' to check all.

I can add --print-build-logs, which is helpful if some checks haven't been run, but once everything is cached this adds no additional output.

--verbose doesn't help much either:

$ nix flake check --verbose
evaluating flake...
running flake checks...
warning: The check omitted these incompatible systems: aarch64-linux, x86_64-darwin, x86_64-linux
Use '--all-systems' to check all.

--debug includes a ton of data, but it's so dense and cluttered that it's not really useful for this.

I'd like the output to show each check that was performed, like this:

$ nix flake check
✔ checks.aarch64-darwin.my-check is a derivation: /nix/store/kiiw4mx4p8cfmr5f9ci07xnwyp19wk9s-my-check
✔ devShells.aarch64-darwin.default is a derivation: /nix/store/kiiw4mx4p8cfmr5f9ci07xnwyp19wk9s-shell
✔ overlays.default is an overlay
✗ overlays.default argument names are not `final` and `prev`
@tomberek
Copy link
Contributor

Addressed by #8893.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

2 participants