Open jonsagara opened 4 weeks ago
Could you please explain how you installed version 0.132.1
?
Verified in Windows 11 amd64
Sandbox.
--> Installing WinGet
--> Disabling safety warning when running installer
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.
PS> winget install -e Hugo.Hugo.Extended --version 0.132.1
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").
Do you agree to all the source agreements terms?
[Y] Yes [N] No: Y
Found Hugo (Extended) [Hugo.Hugo.Extended] Version 0.132.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/gohugoio/hugo/releases/download/v0.132.1/hugo_extended_0.132.1_windows-amd64.zip
██████████████████████████████ 24.2 MB / 24.2 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "hugo"
Path environment variable modified; restart your shell to use the new value.
Successfully installed
PS> winget list
Name Id Version Available Source
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft Edge Microsoft.Edge 100.0.1185.36 127.0.2651.105 winget
Microsoft Edge Update ARP\Machine\X86\Microsoft Edge Update 1.3.155.85
Hugo (Extended) Hugo.Hugo.Extended 0.132.1 0.132.2 winget
App Installer Microsoft.AppInstaller 1.23.1911.0 winget
Microsoft Edge MSIX\Microsoft.MicrosoftEdge.Stable_100.0.1185.36_neutral__8w… 100.0.1185.36
Microsoft.SecHealthUI MSIX\Microsoft.SecHealthUI_1000.22621.1.0_x64__8wekyb3d8bbwe 1000.22621.1.0
Microsoft.UI.Xaml.2.4 MSIX\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe 2.42007.9001.0
Microsoft.UI.Xaml.2.7 Microsoft.UI.Xaml.2.7 7.2208.15002.0 winget
Microsoft.UI.Xaml.2.8 Microsoft.UI.Xaml.2.8 8.2310.30001.0 winget
Microsoft Visual C++ 2015 UWP Desktop Runtime Package Microsoft.VCLibs.Desktop.14 14.0.33321.0 winget
Microsoft Visual C++ 2015 UWP Runtime Package MSIX\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe 14.0.30704.0
Windows Package Manager Source (winget) V2 MSIX\Microsoft.Winget.Source_2024.819.1151.45_neutral__8wekyb… 2024.819.1151.45
PS> winget upgrade Hugo.Hugo.Extended
No installed package found matching input criteria.
Diffs between 2 versions (0.132.1
and 0.132.2
) of installer.yaml
are as follows. Can't figure out what was wrong. 😕
winget.exe
I installed it with winget install Hugo.Hugo.Extended
Also, this has been happening for several versions now. Unfortunately, I can't remember when it started happening.
I enabled --verbose-logs
mode. Here's what I get.
winget install -e Hugo.Hugo.Extended -l C:\Applications\Hugo\Hugo\Extended\ -v 0.132.1 --verbose-logs
winget update -e Hugo.Hugo.Extended --verbose-logs
Notice following contents during invoking winget update
:
2024-08-20 00:26:25.550 [YAML] Detected UTF-8
2024-08-20 00:26:25.667 [REPO] Performing search: Query:[none] Filter:Id='Hugo.Hugo.Extended'[CaseInsensitive]
2024-08-20 00:26:25.668 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='hugo'+'thehugoauthors'[Exact]
2024-08-20 00:26:25.668 [REPO] Performing search: Query:[none] Include:NormalizedNameAndPublisher='hugo'+'thehugoauthors'[Exact]
2024-08-20 00:26:25.668 [REPO] Performing search: Query:[none] Include:ProductCode='hugo.hugo.extended_microsoft.winget.source_8wekyb3d8bbwe'[Exact] Include:NormalizedNameAndPublisher='hugo'+'thehugoauthors'[Exact]
2024-08-20 00:26:25.669 [REPO] ... installed package [ARP\User\X64\Hugo.Hugo.Extended_Microsoft.Winget.Source_8wekyb3d8bbwe] had multiple correlations and is being ignored as a match for [Hugo.Hugo.Extended]
2024-08-20 00:26:25.669 [CLI ] Search result size: 0
2024-08-20 00:26:25.669 [CLI ] No app found matching input criteria
It seems package ID written to Windows Registry (here is ARP\User\X64\Hugo.Hugo.Extended_Microsoft.Winget.Source_8wekyb3d8bbwe
) is not the same as what it's shown (here is Hugo.Hugo.Extended
).
[!NOTE]
My configuration prefer
zh-CN
for package locale.
pwsh> winget install -e Hugo.Hugo.Extended -l C:\Applications\Hugo\Hugo\Extended\ -v 0.132.1 --verbose-logs
已找到 Hugo(扩展版) [Hugo.Hugo.Extended] 版本 0.132.1
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
已成功验证安装程序哈希
正在提取存档...
已成功提取存档
正在启动程序包安装...
添加了命令行别名: "hugo"
已成功安装
00:45:50 C:\...\winget-pkgs [master ≡] 3.06s pwsh> winget list Hugo.Hugo.Extended
名称 ID 版本 可用 源
------------------------------------------------------
Hugo(扩展版) Hugo.Hugo.Extended 0.132.1 0.132.2 winget
pwsh> winget update -e Hugo.Hugo.Extended
找不到与输入条件匹配的已安装程序包。
pwsh> winget update 'Hugo(扩展版)'
已找到 Hugo(扩展版) [Hugo.Hugo.Extended] 版本 0.132.2
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://github.com/gohugoio/hugo/releases/download/v0.132.2/hugo_extended_0.132.2_windows-amd64.zip
已取消
pwsh> winget update -e 'ARP\User\X64\Hugo.Hugo.Extended_Microsoft.Winget.Source_8wekyb3d8bbwe'
已找到 Hugo(扩展版) [Hugo.Hugo.Extended] 版本 0.132.2
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://github.com/gohugoio/hugo/releases/download/v0.132.2/hugo_extended_0.132.2_windows-amd64.zip
已取消
I would prefer regarding it as a bug of winget.exe
.
CC @stephengillie
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
I am unable to upgrade hugo with
winget upgrade
, but I can install the latest version withwinget install
.Steps to reproduce
With hugo 0.132.1 installed, I ran the
winget upgrade
command and got the following result:So I ran
winget install
instead, which "upgraded" to 0.132.2:Which I verified with
hugo version
:Actual behavior
winget upgrade Hugo.Hugo.Extended
does not upgrade hugo to the latest version. Instead it reports a message:Expected behavior
winget upgrade Hugo.Hugo.Extended
should upgrade hugo to the latest version.Environment
Screenshots and Logs