1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +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:
Bob van der Linden 2024-02-21 21:55:51 +01:00
parent 774e7ca584
commit 4ae5091716
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View file

@ -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.