Skip to content

Conversation

florelis
Copy link
Member

@florelis florelis commented Jul 3, 2025

Repair-WinGetPackageManager is failing to install winget in some Win10 systems. The issue seems come from #5517 and be caused because in some cases we fail to mark any one architecture as the right one to use for dependencies. This PR is a partial revert of #5517 to add the previous logic as a fallback.

May fix #5559 (but I haven't set up an environment to test it...)

Microsoft Reviewers: Open in CodeFlow

@Trolldemorted
Copy link

RuntimeInformation.OSArchitecture is X64 in my sandbox, so it'll probably do the trick. Any chance the bug on ARM64 is fixed where it originates, instead of hiding it here?^^

@florelis
Copy link
Member Author

florelis commented Jul 3, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@florelis
Copy link
Member Author

florelis commented Jul 3, 2025

Any chance the bug on ARM64 is fixed where it originates, instead of hiding it here?^^

@JohnMcPMS do you know/remember what the actual issue was with RuntimeInformation.OSArchitecture?

@yao-msft
Copy link
Contributor

yao-msft commented Jul 4, 2025

I believe the original issue is dotnet/runtime#26612

For compatibility reason, it's by design to not break legacy code.

@florelis florelis merged commit f1f9ac3 into microsoft:master Jul 4, 2025
9 checks passed
@florelis florelis deleted the repair-repair branch July 4, 2025 04:12
florelis added a commit to florelis/winget-cli that referenced this pull request Jul 4, 2025
`Repair-WinGetPackageManager` is failing to install winget in some Win10
systems. The issue seems come from microsoft#5517 and be caused because in some
cases we fail to mark any one architecture as the right one to use for
dependencies. This PR is a partial revert of microsoft#5517 to add the previous
logic as a fallback.

May fix microsoft#5559 (but I haven't set up an environment to test it...)
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/5568)
florelis added a commit that referenced this pull request Jul 7, 2025
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

Successfully merging this pull request may close these issues.

Repair-WinGetPackageManager fails with Microsoft.WinGet.Client 1.11.400 in Windows Sandbox
3 participants