You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using upgrade and remove is counter intuitive. The following example shows what a user will likely presume to work:
$ nix profile install github:cachix/devenv/latest
$ nix profile upgrade github:cachix/devenv/latestwarning: 'github:cachix/devenv/latest' does not match any packageswarning: Use 'nix profile list' to see the current profile.
$ nix profile remove devenvwarning: 'devenv' does not match any packageswarning: Use 'nix profile list' to see the current profile.
The installable used in install is not applicable to remove nor upgrade.
The output shows warnings, but are actually errors. Nothing has changed to the profile.
nix profile list is suggested, but it isn't clear that you need to pick the index from that list.
The name of the installable (devenv) is not applicable to remove nor upgrade. Ideally the NAME is deferred from the flake patterns (github:OWNER/NAME/VERSION, github:OWNER/REPO/VERSION#NAME, nixpkgs#NAME, github:OWNER/NAME/VERSION#default).
The text was updated successfully, but these errors were encountered:
bobvanderlinden
changed the title
nix profiles upgrade and remove have counter-intuitive UXnix profiles upgrade and remove have counter-intuitive argument
Mar 4, 2023
Using upgrade and remove is counter intuitive. The following example shows what a user will likely presume to work:
install
is not applicable toremove
norupgrade
.nix profile list
is suggested, but it isn't clear that you need to pick the index from that list.devenv
) is not applicable toremove
norupgrade
. Ideally theNAME
is deferred from the flake patterns (github:OWNER/NAME/VERSION
,github:OWNER/REPO/VERSION#NAME
,nixpkgs#NAME
,github:OWNER/NAME/VERSION#default
).The text was updated successfully, but these errors were encountered: