nix upgrade-nix should restart the daemon for you #267

Open
opened 2024-05-05 22:43:00 +00:00 by jade · 5 comments
Owner

Currently it doesn't, and that requires extra steps in upgrade documents.

Currently it doesn't, and that requires extra steps in upgrade documents.
Author
Owner

Also perhaps upgrade-nix should just hit the installer. Unsure.

Also perhaps `upgrade-nix` should just hit the installer. Unsure.
Owner

we::horrors are convinced that upgrade-nix should not exist and be an installer feature instead. it's too much of a footgun, especially on systems that had nix installed via a different package manager, not the installer

we::horrors are convinced that `upgrade-nix` should not exist and be an installer feature instead. it's too much of a footgun, especially on systems that had nix installed via a different package manager, not the installer
Author
Owner

yeah, it feels like possible miscommunication that we unbroke it rather than replacing it with an installer feature 🙃 i am very sorry @qyriad.

yeah, it feels like possible miscommunication that we unbroke it rather than replacing it with an installer feature 🙃 i am very sorry @qyriad.
Owner

No problem! We assumed fixing upgrade-nix was temporary/interim while the installer feature wasn't a thing yet, so we knew we were fixing a feature that was not long for this world

No problem! We assumed fixing upgrade-nix was temporary/interim while the installer feature wasn't a thing yet, so we knew we were fixing a feature that was not long for this world

I just ran nix upgrade-nix and afterwards nix --version reports the new version.
I assume that this is expected and I still need to restart the daemon manually to complete the upgrade. But it would be nice if that is specifically documented (i.e. some language to the effect that the daemon restart is necessary even though it looks like it is upgraded).

I just ran `nix upgrade-nix` and afterwards `nix --version` reports the new version. I assume that this is expected and I still need to restart the daemon manually to complete the upgrade. But it would be nice if that is specifically documented (i.e. some language to the effect that the daemon restart is necessary even though it *looks* like it is upgraded).
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#267
No description provided.