-
Notifications
You must be signed in to change notification settings - Fork 18k
x/build/cmd/release: darwin/arm64 installer prompts for installing Rosetta 2 #43422
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Just to be sure, is https://golang.org/dl/go1.16beta1.darwin-arm64.pkg the installer you used? cc @dmitshur |
Thanks for reporting. Perhaps there's some configuration in the installer causing macOS to think Rosetta will be needed, when that shouldn't be the case. We'll take a look. After installing, does |
The problem may be that we're not including a
It likely needs to be set to a value that includes
CC @golang/release, @markmentovai. |
I actually didn't install it as I wanted a "pure" experience 😄 I am testing with 11.1 Let me know if it helps to actually install it. |
Thanks. We should fix this in time for the next pre-release of Go 1.16. If you'd like, you can wait until then, but you certainly don't have to. This issue affects only the installer, the actual Go distribution is already built for ARM64. You can also use the go1.16beta1.darwin-arm64.tar.gz archive to avoid having to install Rosetta 2. |
@dmitshur Thank you |
I tested the change described in #43422 (comment) by making use of
(This process strips the signing, but that's not a problem for the purpose of testing the change described here.) I tested this on a Mac without Rosetta 2 installed (thanks @cagedmantis). Prior to explicitly setting hostArchitectures, Rosetta 2 was required and the installer would not proceed without it. After setting it, Go was successfully installed without Rosetta 2. It also had the added benefit of reporting "Go can't be installed on this computer." if the ARM64 installer is opened on an Intel-based Mac (previously, the ARM64 installer would run without letting the user know it's the wrong architecture, but then the installed distribution wouldn't work because Intel-based Macs can't run arm64 binaries). We've updated our release process to apply this change, so the next Go 1.16 release will have this fix. Thanks again for the report. Closing. |
Hi. this still happens to me on my M1 Mac with version 1.17. |
@ifamakes I've checked the Since this issue has been closed for a good while, I think we should treat this as a possible new problem. Can you please file a new issue that references this one, and provide more information, such as what macOS version you've tested with. Thank you. |
What version of Go are you using (
go version
)?1.16beta1
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?MacOS Big Sur on arm64 M1
go env
OutputWhat did you do?
Ran installation
What did you expect to see?
The installer should have installed Go in native M1 mode.
What did you see instead?
The installer asked for Rosetta to be installed as a mandatory install dependency.
The text was updated successfully, but these errors were encountered: