Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify error when brew user has no privileges on cwd #111

Open
sp-ricard-valverde opened this issue Sep 7, 2018 · 1 comment
Open

Notify error when brew user has no privileges on cwd #111

sp-ricard-valverde opened this issue Sep 7, 2018 · 1 comment

Comments

@sp-ricard-valverde
Copy link

After reporting the original problem with brew here and getting closed without resolution I guess something could be done at least on this module's side.

The problem is, if running puppet apply with sudo and from a private folder, when Homebrew tries to install the packages as the Homebrew unprivileged user, it fails.
When it fails this way, the puppet module does not catch this particular permission error and continues execution, in the end leading to errors like Error: Could not find package: <name>.

I think It should be useful to preventively report an error in the lines:

raise Puppet::ExecutionFailure, "Homebrew user has no privileges on the current folder #{pwd}"
@TheKevJames
Copy link
Owner

Linking to #101 as a partial dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants