Change how we determine which framework architectures to install #5517
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
OSArchitecturetells 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 fromOSArchitecture.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_ARCHITECTURESthat 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