You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Cowardly refusing to 'sudo brew update'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
If you include the homebrew class and override the
$user
and$group
You are going to have problems with running homebrew update cron, as the homebrew update cron will attempt to run as root
https://github.com/gildas/puppet-homebrew/blob/master/manifests/init.pp#L233
Which will error
if you update this
https://github.com/gildas/puppet-homebrew/blob/master/manifests/init.pp#L233
to use
$homebrew::user
you won't have this problem. Also, since$homebrew::user
already defaults to root, it should be pretty safe to dohttps://github.com/gildas/puppet-homebrew/blob/master/manifests/init.pp#L79
The text was updated successfully, but these errors were encountered: