Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build for Apple M1 when running PowerShell 7.2 (arm64) #1628

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

andyleejordan
Copy link
Member

The previous fix assumed PowerShell was always running in an emulated mode (i.e. running PowerShell (x64) but on an Apple M1). Now that PowerShell 7.2 has a native build for Apple M1 (arm64) the check needs to handle both cases.

We must also skip asking dotnet-install to install the 3.1 or 5.0 .NET Runtimes on an Apple M1 because they don't exist, but their installer tries to get them anyway. This was a non-breaking bug previously where the macOS x64 runtimes would be installed, but not used.

The previous fix assumed PowerShell was always running in an emulated
mode (i.e. running PowerShell (x64) but on an Apple M1). Now that
PowerShell 7.2 has a native build for Apple M1 (arm64) the check needs
to handle both cases.

We must also skip asking `dotnet-install` to install the 3.1 or 5.0 .NET
Runtimes on an Apple M1 because they don't exist, but their installer
tries to get them anyway. This was a non-breaking bug previously where
the macOS x64 runtimes would be installed, but not used.
@andyleejordan andyleejordan added the Ignore Exclude from the changelog. label Nov 10, 2021
Dependabot gets a bit confused here because we conditionally depend on
both the 7.0 and 7.2 SDK packages.
@andyleejordan
Copy link
Member Author

Replaces #1625.

@andyleejordan andyleejordan merged commit 8af84e7 into master Nov 10, 2021
@andyleejordan andyleejordan deleted the andschwa/applem1 branch November 10, 2021 23:15
@andyleejordan andyleejordan added Area-Build & Release Issue-Bug A bug to squash. and removed Ignore Exclude from the changelog. labels Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants