mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
nix profile: suggest removal using entry name
When a file conflict arises during a package install a suggestion is made to remove the old entry. This was previously done using the installable URLs of the old entry. These URLs are quite verbose and often do not equal the URL of the existing entry. This change uses the recently introduced profile entry name for the suggestion, resulting in a simpler output. The improvement is easily seen in the change to the functional test.
This commit is contained in:
parent
774e7ca584
commit
4ae5091716
2 changed files with 7 additions and 7 deletions
|
@ -166,7 +166,7 @@ error: An existing package already provides the following file:
|
|||
|
||||
To remove the existing package:
|
||||
|
||||
nix profile remove path:${flake1Dir}#packages.${system}.default
|
||||
nix profile remove flake1
|
||||
|
||||
The new package can also be installed next to the existing one by assigning a different priority.
|
||||
The conflicting packages have a priority of 5.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue