Skip to content

Conversation

@JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Jun 10, 2025

Fixes #5020

Change

This change consolidates the choice of which framework architectures to install to a single function and changes it from the current "whatever OSArchitecture tells us + x86 and x64 if it was ARM64" to the set of architectures that we see installed across all other frameworks. The goal is to work around the fact that in some instances we are not receiving an honest answer from OSArchitecture.

This does rely on the presence of at least one framework package of the system architecture.

It also adds a "break in case of emergency" environment variable WINGET_PACKAGE_MANAGER_REPAIR_DEPENDENCY_ARCHITECTURES that can be used to control the set of architectures in the event of unexpected issues.

Validation

Manually verified functionality on my dev machine.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS merged commit 5622fd7 into microsoft:master Jun 11, 2025
9 checks passed
@JohnMcPMS JohnMcPMS deleted the pwsh-install-all branch June 11, 2025 17:48
florelis added a commit that referenced this pull request Jul 4, 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](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/5568)
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)
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 does not work on ARM64

2 participants