microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.54k stars 1.39k forks source link

Neovim is installed twice instead upgraded #4571

Open jfernandz opened 1 week ago

jfernandz commented 1 week ago

Brief description of your issue

I've run winget upgrade --all and it has installed the new version of Neovim (0.10.0) in parallel to the older one (0.9.5). Now I cannot uninstall any version even using the -v argument for winget uninstall.

Also ... not sure why despite my system language is english ... winget still prints its outputs in spanish 🤔

Steps to reproduce

Just running winget upgrade --all

Expected behavior

normal upgrade

Actual behavior

Neovim 0.10.0 has been installed but not upgraded 0.9.5 version, now I cannot remove any one.

> winget list neovim
Nombre Id            Versión Disponible Origen
----------------------------------------------
Neovim Neovim.Neovim 0.9.5   0.10.0     winget
Neovim Neovim.Neovim 0.10.0             winget
> winget uninstall Neovim -v 0.9.5
Se encontraron varios paquetes instalados que coinciden con los criterios de entrada. Por favor, reajusta tu búsqueda.
Nombre Id
--------------------
Neovim Neovim.Neovim
Neovim Neovim.Neovim
> winget uninstall --id Neovim.Neovim -v 0.9.5
No se encontró ningún paquete que coincida con los criterios de entrada.

Environment

> winget --info
Administrador de paquetes de Windows v1.7.11261
Copyright (c) Microsoft Corporation. Todos los derechos reservados.

Windows: Windows.Desktop v10.0.22631.3593
Arquitectura del sistema: X64
Paquete: Microsoft.DesktopAppInstaller v1.22.11261.0

Directorios de WinGet
----------------------------------------------------------------------------------------------------------------------------------------
Registros                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Configuración de usuario                    %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Directorio de vínculos portátiles (usuario) %LOCALAPPDATA%\Microsoft\WinGet\Links
Directorio de vínculos portátiles (equipo)  C:\Program Files\WinGet\Links
Raíz de paquete portátil (usuario)          %LOCALAPPDATA%\Microsoft\WinGet\Packages
Raíz de paquete portátil                    C:\Program Files\WinGet\Packages
Raíz de paquete portátil (x86)              C:\Program Files (x86)\WinGet\Packages
Descargas del instalador                    %USERPROFILE%\Downloads

Vínculos
-----------------------------------------------------------------------------------
Declaración de privacidad   https://aka.ms/winget-privacy
Contrato de licencia        https://aka.ms/winget-license
Avisos de terceros          https://aka.ms/winget-3rdPartyNotice
Página principal            https://aka.ms/winget
Términos de Microsoft Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

Configuración de administrador            Estado
-------------------------------------------------------
LocalManifestFiles                        Deshabilitado
BypassCertificatePinningForMicrosoftStore Deshabilitado
InstallerHashOverride                     Deshabilitado
LocalArchiveMalwareScanOverride           Deshabilitado
stephengillie commented 1 week ago

To separate this Issue:

I'm not sure of the best way to do this. Another Issue might be needed.

mdanish-kh commented 1 week ago

I've run winget upgrade --all and it has installed the new version of Neovim (0.10.0) in parallel to the older one (0.9.5). Now I cannot uninstall any version even using the -v argument for winget uninstall.

@jfernandz Can you try out the 1.9-preview version of WinGet and enable the side-by-side experimental feature? The preview version has better support for side-by-side installations (The changes should be available in WinGet 1.8 stable soon). You would be able to do winget uninstall --id Neovim.Neovim --version 0.9.5 to unblock this scenario.

Otherwise, you'll have to manually uninstall the old version from appwiz.cpl / Apps&Features

jfernandz commented 1 week ago

well, the manual method (appwiz.cpl) was able to uninstall Neovim 0.9.5.

winget uninstall --id Neovim.Neovim --version 0.9.5 didn't work, but I've not tried the 1.9-preview version of WinGet 😢

maybe I should install it to check it the language issue persists; as Neovim issue is more appropriate for winget-pkgs

jfernandz commented 1 week ago

1.9-preview version doesn't solve the language issue, btw 😞