-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Don't recommend 'nix log' unless experimental feature is enabled #8122
Don't recommend 'nix log' unless experimental feature is enabled #8122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that makes a lot of sense, indeed.
Just a small style suggestion, feel free to ignore it if you want
This fixes the issue that `nix-build`, without experimental feature 'nix-command' enabled, recommends the experimental CLI `nix log` to view build logs. Now it'll recommend the stable `nix-store -l` CLI instead. Fixes NixOS#8118
a443639
to
74d94b2
Compare
I've marked the PR as a draft, because in my testing it keeps printing |
|
Yes. Which indeed explains why it didn't work for you. You can use |
With
(It's missing the I'm not sure what to do now. I don't know how to test it and I'm starting to worry that this change isn't even correct, because the client and the daemon can have different/conflicting experimental-feature sets? |
Un-drafted, because I don't think this change can make the situation any worse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good. Yeah it is a bug this is even showing up with nix-build
at all.
The proper solution is to get this UI logic somewhere else rather than part of the building logic, but this will do for now. As you say, it is strictly better than before.
Motivation
This fixes the issue that
nix-build
, without experimental feature 'nix-command' enabled, recommends the experimental CLInix log
to view build logs. Now it'll recommend the stablenix-store -l
CLI instead.Context
Fixes #8118.
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.