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

Do not try to acquire dotnet runtime if we are on M1 macs #291

Merged
merged 4 commits into from
Jun 23, 2021

Conversation

gracegoo-stripe
Copy link
Contributor

Fixes #287.

dotnet < 6.0 is not supported for native M1 so this commit adds a check to not even attempt to acquire it.
Given that dotnet is not supported, we don't expect this path to be hit anyway but adding telemetry to get some numbers.

  • Also added some unit tests for this change and also fixed the unit tests for the getDotnetProjectFiles and added them back in.

// arm64 is not supported for dotnet < 6.0:
// https://github.com/dotnet/core/issues/4879#issuecomment-729046912
if (getOSType() === OSType.macOSarm) {
outputChannel.appendLine(`.NET runtime v${dotnetRuntimeVersion} is not supported for M1`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to say Apple Silicon

Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Unfortunate that we don't have M1 macs to test this with.

@gracegoo-stripe gracegoo-stripe merged commit 9c300e7 into master Jun 23, 2021
@gracegoo-stripe gracegoo-stripe deleted the gracegoo-m1-check branch June 23, 2021 20:15
@gracegoo-stripe gracegoo-stripe mentioned this pull request Jun 30, 2021
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.

Installing extension seems to expect .NET tools, and fails
3 participants