TheKevJames / puppet-homebrew

homebrew (+brewcask! +taps!) package installer and provider
https://forge.puppet.com/thekevjames/homebrew
Apache License 2.0
18 stars 44 forks source link

WIP: support for MacOSX arm64 #154

Open michaelw opened 2 years ago

michaelw commented 2 years ago

This change is meant as a RFC to enable MacOS arm64 homebrew, based on other work (from datty/puppet-homebrew-1)

alvagante commented 2 years ago

@michaelw you are my hero. This MR works perfectly for me (tested on a M1, haven't checked on an Intel Macs for backwards compability)

TheKevJames commented 2 years ago

Hi @michaelw -- thanks for tackling this issue! I just merged #155 for handling the /usr/local -> /opt/homebrew change. It looks like you've got a few more improvements in here, such as HOMEBREW_CHANGE_ARCH_TO_ARM. Could you please rebase onto the newly merged code with whichever extras are valuable here?