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

Another install loop on Homebrew recipe #102

Open
aysiu opened this issue Feb 10, 2025 · 1 comment
Open

Another install loop on Homebrew recipe #102

aysiu opened this issue Feb 10, 2025 · 1 comment

Comments

@aysiu
Copy link
Contributor

aysiu commented Feb 10, 2025

Overview of issue

I'm not sure the best way to address this (maybe preinstall_script?), but Homebrew still has an install loop, at least for an upgrade/update.

The main issue is that the package on the Homebrew releases page doesn't seem to overwrite an existing Homebrew installation.

Details of issue

For example, if you download and install Homebrew 4.4.20, and then run /opt/homebrew/bin/brew --version, it will return Homebrew 4.4.13-15-g882bb52 (or whatever older version you had installed) and not anything like 4.4.20.

At first I thought maybe it wasn't overwriting the binary, so I tried sudo rm /opt/homebrew/bin/brew. After reinstalling, it was still on 4.4.13.

So I blew out the entire /opt/homebrew subdir. After reinstalling, it finally returned Homebrew 4.4.20.

So we may need to have the Munki recipe remove the old Homebrew before updating/upgrading.

aysiu added a commit to aysiu/nstrauss-recipes that referenced this issue Feb 10, 2025
@aysiu
Copy link
Contributor Author

aysiu commented Feb 10, 2025

Filed an issue with brew itself: Homebrew/brew#19287

nstrauss added a commit that referenced this issue Feb 11, 2025
…subdirs first (#103)

* Have Homebrew Munki recipe delete old Homebrew subdir first

To avoid an install loop. More details in #102

* Delete only the necessary subdirectories for a clean upgrade

* 2 v 4 space indent

---------

Co-authored-by: Nathaniel Strauss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant