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 --version only shows version of the CLI not of the demon #5209

Open
NobbZ opened this issue Sep 2, 2021 · 1 comment
Open

nix --version only shows version of the CLI not of the demon #5209

NobbZ opened this issue Sep 2, 2021 · 1 comment

Comments

@NobbZ
Copy link
Contributor

NobbZ commented Sep 2, 2021

Is your feature request related to a problem? Please describe.

When I re-installed my system the last time, I used nix-shell -p nixUnstable to enter a shell with flakes enabled.

nixos-rebuild exited with errors about --extra-experimental-features beeing unknown.

nix --version told me, that I was on a recent nix version (2.4pre somewhen from beginning of August).

As that didn't work properly, I tried nix shell github:nixos/nix to get a nix from now, and I got the same error as before.

After a lot of trial and error I realized, that the demon still was running nix 2.3 and assumed that the error might be coming from the demon.

Describe the solution you'd like

nix --version should show not only the version of the nix CLI itself, but also of the demon it is connecting to (if it is using a demon).

Describe alternatives you've considered

There is no real alternative to this. But displaying client and server version separately is quite common in applications that are split in client and server.

@NobbZ
Copy link
Contributor Author

NobbZ commented Feb 14, 2022

As #5952 got fixed by #5991, can we include the demon version in the nix --version output as well?

That is a lot more intuitive than nix store ping.

@stale stale bot added the stale label Nov 13, 2022
@stale stale bot removed the stale label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants