nix profile install
mixes up package names/paths when there are conflicting files
#11632
Labels
nix profile install
mixes up package names/paths when there are conflicting files
#11632
Describe the bug
When trying to install a package with
nix profile install
that has a conflicting file with an already installed package, the error message sometimes mixes up the paths and suggests a wrong command to remove an existing package.Steps To Reproduce
nix profile install nixpkgs#jujutsu
(has ajj
binary)nix profile install nixpkgs#jj
(also has ajj
binary)jj-1.9.2
is presented as "existing", andjujutsu-0.22.0
as "new", andnix profile remove jj
should have beennix profile remove jujutsu
:Expected behavior
Expected
jj
package to be "new", andjujutsu
to be "existing".nix-env --version
outputnix-env (Nix) 2.24.9
Additional context
If the order of operations is swapped (install
jj
first,jujutsu
second), the error message is identical (but correct in the latter case), which is wrong.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: