-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[BUG]: UseDotNet task installs x64 build on Mac OS arm64 #19174
Comments
This is currently an issue for me on my self-hosted macstudio agent. It causes my net8-ios build to freeze and eventually time out. This has been plaguing our builds for months. My workaround is to not run the UseDontNet task if on the self-hosted agent, but would prefer if it would install the correct dotnet version. |
The change has been merged and will be in the next release of the task. Thank you for the contribution! |
@merlynomsft when will this get released? It was merged 2 weeks ago but I still see task 2.232.0 being used on my ADO runs. |
We roll out task updates incrementally, that said, this update should show up soon. @max-zaytsev, do you have an estimate when this will be available to everyone? |
@svaldetero the fix should be available now. |
On a macOS arm64 (M1/M2) build agent, the task incorrectly detects the architecture as
x64
, and downloads the x64 build of .NET. It can run successfully via the Rosetta compatibility mode, but is probably not what anyone wants, and defeats the purpose of using a (more expensive) Mac M1 build agent.Task name
UseDotNet
Task version
2.228.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
macOS 12.6.9
Task log
Aditional info
This appears to be caused by an incomplete list of ARM64 detection strings in
get-os-distro.h
get_machine_architecture()
Specifically,
uname -m
returnsarm64
on a Mac arm64 (M1/M2) system.Reference: https://stackoverflow.com/questions/65259300/detect-apple-silicon-from-command-line
The text was updated successfully, but these errors were encountered: