microsoft / microsoft/winget-pkgs
[Package Issue]: Microsoft.Git cannot be distinguished from Git.Git
Open
Nobody has claimed this yet.
Issue-Bug
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
Microsoft.Git is installed as Git.Git.
Steps to reproduce
- Install Microsoft.Git via
winget install Microsoft.Git - Verify installation via
winget list --name Gitthis shows Git.Git is installed. - Verify installation via
winget list --id Microsoft.Git- this shows Microsoft.Git is installed. - Verify installation via
winget list --id Git.Git- this shows Git.Git is installed.
Actual behavior
at 11:56:50 ❯ winget list --id Microsoft.Git
Name Id Version Source
-------------------------------------
Git Microsoft.Git 2.46.0.0.0 winget
at 11:57:00 ❯ winget list --name Git
Name Id Version Available Source
------------------------------------------------------------------------------
Git Git.Git 2.46.0.0.0 2.46.2 winget
at 11:57:12 ❯ winget list --id Git.Git
Name Id Version Available Source
----------------------------------------
Git Git.Git 2.46.0.0.0 2.46.2 winget
Expected behavior
winget should always show Microsoft.Git installed, not Git.Git. If I run winget update -r, it will update Microsoft.Git using Git.Git
Environment
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.1742
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
Screenshots and Logs
2024-09-27 11:53:18.935 [CORE] WinGet, version [1.8.1911], activity [{16E95466-5E53-489D-BB2A-E08FEC48E2FF}]
2024-09-27 11:53:18.935 [CORE] OS: Windows.Desktop v10.0.26100.1742
2024-09-27 11:53:18.935 [CORE] Command line Args: "C:\Users\tilagnes\AppData\Local\Microsoft\WindowsApps\winget.exe" install Microsoft.Git
2024-09-27 11:53:18.935 [CORE] Package: Microsoft.DesktopAppInstaller v1.23.1911.0
2024-09-27 11:53:18.935 [CORE] IsCOMCall:0; Caller: winget-cli
2024-09-27 11:53:18.946 [CLI ] WinGet invoked with arguments: 'install' 'Microsoft.Git'
2024-09-27 11:53:18.946 [CLI ] Found subcommand: install
2024-09-27 11:53:18.946 [CLI ] Leaf command to execute: root:install
2024-09-27 11:53:18.950 [CLI ] Executing command: install
2024-09-27 11:53:18.960 [REPO] Default source requested, multiple sources available, adding all to source references.
2024-09-27 11:53:18.960 [REPO] Adding to source references msstore
2024-09-27 11:53:18.960 [CORE] Default proxy is not set
2024-09-27 11:53:18.960 [REPO] REST HTTP Client helper does not use proxy
2024-09-27 11:53:18.960 [REPO] Adding to source references winget
2024-09-27 11:53:18.961 [CLI ] Created authentication arguments. Mode: silentPreferred, Account:
2024-09-27 11:53:18.972 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 11:53:18.972 [CORE] Found matching extension.
2024-09-27 11:53:18.977 [REPO] Multiple sources available, creating aggregated source.
2024-09-27 11:53:18.977 [REPO] Adding to aggregated source: msstore
2024-09-27 11:53:18.977 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 11:53:19.083 [REPO] Response status: 200
2024-09-27 11:53:19.083 [REPO] Authentication node not found. Assuming authentication type none.
2024-09-27 11:53:19.084 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 11:53:19.098 [REPO] Response status: 200
2024-09-27 11:53:19.098 [REPO] Authentication node not found. Assuming authentication type none.
2024-09-27 11:53:19.098 [REPO] Adding to aggregated source: winget
2024-09-27 11:53:19.105 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 11:53:19.106 [CORE] Found matching extension.
2024-09-27 11:53:19.160 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.927.1710.43_neutral__8wekyb3d8bbwe\Public\index.db'
2024-09-27 11:53:19.161 [REPO] Opened SQLite Index with version [2.0], last write [2024-09-27 09:08:15.000]
2024-09-27 11:53:19.595 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-09-27 11:53:19.600 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:53:19.740 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:53:20.495 [REPO] Opening database for ReadWrite at 'C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2024-09-27 11:53:20.496 [REPO] Opened SQLite Index with version [1.6], last write [2023-07-27 11:43:00.000]
2024-09-27 11:53:20.573 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch
2024-09-27 11:53:20.597 [REPO] Response status: 200
2024-09-27 11:53:20.603 [REPO] Opening database for ReadWrite at 'C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-09-27 11:53:20.604 [REPO] Opened SQLite Index with version [1.6], last write [2024-09-25 15:02:05.000]
2024-09-27 11:53:20.741 [CLI ] Found one app. App id: Microsoft.Git App name: Microsoft Git
2024-09-27 11:53:20.748 [REPO] Attempting to open pinning database: C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-09-27 11:53:20.748 [REPO] ... opening existing pinning database
2024-09-27 11:53:20.748 [REPO] Opening database for Read at 'C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-09-27 11:53:20.749 [REPO] Opened Pinning Index with version [1.0], last write [2023-07-27 11:44:21.000]
2024-09-27 11:53:20.765 [CLI ] Manifest fields: Name [Microsoft Git], Version [2.46.0.0.0]
2024-09-27 11:53:20.925 [CLI ] Generated temp download path: C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\37d605445e4253c665212f233f3e4a6b225fb8dad29f9eddb12ca58f68f96c55
2024-09-27 11:53:20.926 [CORE] Downloading to path: C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\37d605445e4253c665212f233f3e4a6b225fb8dad29f9eddb12ca58f68f96c55
2024-09-27 11:53:20.927 [CORE] DeliveryOptimization downloading from url: https://github.com/microsoft/git/releases/download/v2.46.0.vfs.0.0/Git-2.46.0.vfs.0.0-64-bit.exe
2024-09-27 11:53:27.137 [CORE] Download completed.
2024-09-27 11:53:29.187 [CORE] Started applying motw to C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\37d605445e4253c665212f233f3e4a6b225fb8dad29f9eddb12ca58f68f96c55 with zone: 3
2024-09-27 11:53:29.201 [CORE] Finished applying motw
2024-09-27 11:53:29.201 [CLI ] Installer hash verified
2024-09-27 11:53:29.201 [CORE] Started applying motw to C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\37d605445e4253c665212f233f3e4a6b225fb8dad29f9eddb12ca58f68f96c55 with zone: 2
2024-09-27 11:53:29.213 [CORE] Finished applying motw
2024-09-27 11:53:29.215 [CLI ] Successfully renamed downloaded installer. Path: C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\Git-2.46.0.vfs.0.0-64-bit.exe
2024-09-27 11:53:29.215 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-09-27 11:53:29.220 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:53:29.368 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:53:29.629 [CLI ] Installer args: /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.46.0.0.0-2024-09-27-11-53-29.629.log" /SUPPRESSMSGBOXES /enable-component windowsterminal
2024-09-27 11:53:29.629 [CLI ] Starting: 'C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\Git-2.46.0.vfs.0.0-64-bit.exe' with arguments '/SP- /SILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.46.0.0.0-2024-09-27-11-53-29.629.log" /SUPPRESSMSGBOXES /enable-component windowsterminal'
2024-09-27 11:54:17.321 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-09-27 11:54:17.327 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:54:17.487 [REPO] Reading MSI UpgradeCodes
2024-09-27 11:54:17.655 [CLI ] During package install, 1 changes to ARP were observed, 0 matches were found for the package, and 0 packages were in both
2024-09-27 11:54:17.655 [CLI ] The entry determined to be associated with the package is 'Git', with publisher 'The Git Fundamentals Team at GitHub'
2024-09-27 11:54:17.668 [REPO] Opening database for ReadWrite at 'C:\Users\tilagnes\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-09-27 11:54:17.669 [REPO] Opened SQLite Index with version [1.6], last write [2024-09-25 15:02:05.000]
2024-09-27 11:54:17.758 [CLI ] Removing installer: C:\Users\tilagnes\AppData\Local\Temp\WinGet\Microsoft.Git.2.46.0.0.0\Git-2.46.0.vfs.0.0-64-bit.exe
2024-09-27 11:54:17.767 [CLI ] Leaf command succeeded: root:install
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported winget install and winget list commands, then inspect the installation log entries describing ARP matching and the Git entry. The issue names no repository file or test; done means installed Microsoft.Git is consistently reported as Microsoft.Git and is not matched or updated through Git.Git.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100