puppet-homebrew icon indicating copy to clipboard operation
puppet-homebrew copied to clipboard

module doesn't support M1 installations

Open vchepkov opened this issue 3 years ago • 6 comments

homebrew is installed under /opt/homebrew on M1 Macs https://github.com/Homebrew/install/blob/fdd70fc9706be79722c2fa5c579652003b010c01/install.sh#L117 module providers fail, since they expect brew in /usr/local I tried to add a link from /opt/homebrew to /usr/local, but brew throws warnings which mess up resource provider

vchepkov avatar Mar 31 '22 12:03 vchepkov

On related note, in several places provider uses Puppet.Err in exception handling , which doesn't exist

vchepkov avatar Mar 31 '22 12:03 vchepkov

This fork has added support for it: https://github.com/datty/puppet-homebrew-1

andrew-wils avatar Apr 06 '22 09:04 andrew-wils

It really isn't. all resource providers expect brew in /usr/local there as well

vchepkov avatar Apr 06 '22 17:04 vchepkov

Would you mind giving this a spin: https://github.com/TheKevJames/puppet-homebrew/pull/154

michaelw avatar Apr 27 '22 16:04 michaelw

Hey folks -- just merged #155 which goes a bit towards fixing this issue. I think there's still a bit more to be done in #154; once both get merged I'll toss up a release with all these fixes.

TheKevJames avatar May 25 '22 20:05 TheKevJames

I switched to git: https://github.com/michaelw/puppet-homebrew.git ref: 7b4e80a71f84553f48ae965c311e4843837420ce

And it works for me. would be nice to have a fact homebrew_prefix and an actual forge release

vchepkov avatar Jan 27 '24 21:01 vchepkov