-
Notifications
You must be signed in to change notification settings - Fork 28
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
Homebrew.munki Install Check Script fails #92
Comments
Thanks for reporting this. Able to repro running with I think the original intention here was to be "more correct" instead of relying on a receipt based install check, but until the issue is fixed, or perhaps maintainers will decline to, that may be the easiest path. |
Opened issue 18907 in Homebrew repo, Homebrew/brew#18907. |
They closed it out of hand... before I had a chance to respond or ask any further questions. I don't understand why it is hard to print a version number but I guess it is to do with an automated build process. I am not sure why Mike wasn't able to reproduce. I have tested on a clean macOS 14.7.1 and a very dirty macOS 12.7.6. @Bo98 suggested a workaround:
This doesn't produce an error under sudo and produces the expected output, without "Homebrew " prepended. On a side note, why is the check script not included in the input section of the recipe? (Honest question, please don't read anything I write as being critical of either you or the Homebrew maintainers, I understand what it is like to do hours of work to only have what feels like thankless criticism in return. I appreciate that you have taken the time to share your work to make our lives easier.) Since it is in the process I couldn't simply remove it within my recipe override. |
It's not meant to be a workaround - it's meant to be a debug as that is what
|
@kluppy Since I'm not using this recipe right now I'm curious which route you'd prefer to take. Can either switch to a package based install, which may not entirely be stateful, or try switching to |
@nstrauss I am happy to rely on package receipts. Sorry for the delay. |
When running
brew --version
as root the current version number is not always returned.E.g. in homebrew 4.4.10 brew --version returns 4.4.10 as a standard user but >=4.3.0 when run as root.
When managesdsoftwareupdate runs the install check, it does so as root, the version numbers don't match and munki installs the package again.
The text was updated successfully, but these errors were encountered: