To provide an update on progress, the latest Local Release v8.3.1 includes Mailpit, the replacement for Mailhog. This contains a native binary for Apple Silicon that we have bundled, removing one of Local’s remaining dependencies on Rosetta 2 for Apple Silicon users. Rosetta 2 is still required, but we’re chipping away.
Any updates on this, now that this year’s WWDC is behind us?
We’re working on bundling a Silicon version of nginx in Local next.
We have tickets for the remaining Intel-specific binaries in Local too. So this is still on our roadmap — thanks for your patience.
Now that a beta of Local 9.1.0 has the native nginx, am I correct that MySQL is the only remaining Intel software within the Apple Silicon build of Local? Any idea how long before an update brings about a native MySQL? I truly believe that those two pieces of software (nginx and MySQL inside Local) may be the only ones relying on Rosetta 2 on my Mac, so am kinda eager (despite the lack of detriment that they’ve been) to get both updated.
…am I correct that MySQL is the only remaining Intel software within the Apple Silicon build of Local?
The remaining Intel binaries still present in 9.1.0 are:
- MySQL (we’re working on bundling an Apple Silicon version of this now and hope to ship in the next release after 9.1).
- rsync (Local bundles a newer version of rsync and ssh than Apple ships with macOS for features used by Local Connect. Local’s ssh binary is already universal, but we need to update the rsync binary for Apple Silicon).
- Apache (not shipped with Local, but we need to provide an Apple Silicon version for download in case macOS users select Apache as their web server before we can truly consider Local to be Silicon-native).
- The sudo-prompt applet. (When Local asks for your permission to write to
/etc/hosts
, it currently launches an Intel binary password prompt provided by the third-party sudo-prompt library. That library is no longer maintained, but we have some ideas to replace it with something that won’t require an Intel binary. Until we do that work, Local under Apple Silicon will need Rosetta to spawn the password prompt.)
We plan to work through this list until Local is fully Silicon native (although it’s not our only focus). Thanks for your patience, and it’s good to hear that it hasn’t been too big a detriment in the meantime.
In looking back at this list again, it does seem to me that the sudo-prompt applet is maybe the one that’ll indeed take longest. But two thoughts come to me:
- On Apple Silicon, or everywhere, an alternative can always be giving us instructions on what to add or remove from
/etc/hosts
manually. Even just the command you run to copy and paste into the Terminal. It may even be able to be kinda like site shells, and much more automated, but still opening into our Terminals and using our sudo authorization. - There is a “supported” way to use Touch ID for sudo, which I’ve found convenient. I put in quotes because not on by default, but literally is just duplicating a system-provided file and uncommenting one line in it, so basically is ready to go and blessed by Apple for those comfortable enabling it. But the existing prompt doesn’t invoke this. Whatever replacement is found it would be great if it did invoke the ability to use Touch ID for sudo if that was configured on the system.
Hi all - I was writing a Twitter response to an Apple Silicon question, and figured I’d just give a longer update here.
We’re making good progress! Nick’s post above summarized the remaining pieces well -
- MySQL - DONE, code is tested and merged and will be released in the next minor version of Local. (There is a patch version, v9.1.1, releasing this week that is bug fixes only, and the MySQL changes are not included).
- rsync and ssh - These are in progress by Nick right now.
- Apache - We’re bumping the Apache that Local uses to the latest (2.4.62) at the same time, and this is in PR. Once merged, we’ll get it set for Apple Silicon and this will be done as well.
- Sudo-prompt - Not started.
Timeline -
Local v9.1.1 - available later this week (~20-22 Nov), no Apple Silicon specific related changes
Local v9.2 - Native MySQL, rsync, ssh, and Apache. I’d expect some if not all of these out in December.
That will leave sudo-prompt as the only remaining Intel binary left to slay. Hopefully this updated timeline is helpful!
Great news. Thx!