Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winget upgrade --all skips some packages #4694

Closed
colejohnson66 opened this issue Jul 31, 2024 · 6 comments
Closed

winget upgrade --all skips some packages #4694

colejohnson66 opened this issue Jul 31, 2024 · 6 comments
Milestone

Comments

@colejohnson66
Copy link

Brief description of your issue

winget upgrade --all skips some packages in the winget source.

Steps to reproduce

Have two packages needing upgrades: Neovim and something else from the winget source.

Expected behavior

Winget upgrades both packages.

Actual behavior

Neovim is skipped.

image

After Oh My Posh is updated:

image

Environment

Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26100.1301
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories                 
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links               
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jul 31, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@denelon
Copy link
Contributor

denelon commented Jul 31, 2024

Can you run winget list neovim. I'd like to see if more than one version is installed.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Jul 31, 2024
@colejohnson66
Copy link
Author

No.

image

@colejohnson66
Copy link
Author

If I try to upgrade it directly, I am given an actual reason:

image

The tail end of the log gives:

2024-07-31 14:47:39.043 [YAML] Detected UTF-8
2024-07-31 14:47:39.047 [CLI ] Starting installer selection.
2024-07-31 14:47:39.047 [CLI ] Installer [X64,wix,User,en-US] not applicable: Installer scope does not match currently installed scope: User != Machine
2024-07-31 14:47:39.062 [CLI ] Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:be

@Trenly
Copy link
Contributor

Trenly commented Jul 31, 2024

More information in -

@colejohnson66
Copy link
Author

Ah, yes. This was a package issue, so I'll close this.

I do think winget needs to be more clear about why packages are skipped. Blindly skipping them on --all with no feedback to the user is very counterintuitive. I'd perfer something like:

(1/2) Found Neovim [Neovim.Neovim] Version 0.10.1
Skipping package as it does not apply to your system or requirements.
For more information, retry with --verbose

(2/2) Found Oh My Posh ...

@denelon denelon added this to the 1.9 Client milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants