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

Stick to defaults - update homebrew_install_path #89

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

dennisse
Copy link
Contributor

As the README says [1], it is recommended to stick to the defaults. The default install path is /opt/homebrew on macs with Apple-chipsets [2], not /opt/homebrew/Homebrew.

1: https://github.com/geerlingguy/ansible-collection-mac/blob/master/roles/homebrew/README.md?plain=1#L20
2: https://github.com/Homebrew/install/blob/master/install.sh#L151-L160

The second commit makes sure /opt/homebrew/Homebrew isn't created on macs with Apple-chipsets.

As the README says - it is recommended to stick to the default. The
default install path is /opt/homebrew on macs with Apple-chipsets [1].

1: <https://github.com/Homebrew/install/blob/master/install.sh#L151-L160>
No reason to create the folder when it isn't needed.

Not sure if this is the best solution here, but it's simple.
@dennisse
Copy link
Contributor Author

The CI-errors does not seem to be related to the changes I proposed

@dannysteenman
Copy link

I've checked the homebrew installation script (https://raw.githubusercontent.com/Homebrew/install/master/install.sh) and @dennisse is correct, the homebrew repository is installed in /opt/homebrew instead of /opt/homebrew/Homebrew, see this line in the official installation script: https://github.com/Homebrew/install/blob/3d2b88baf18424b561766fcdac31be06553e0e07/install.sh#L155

@geerlingguy geerlingguy merged commit a32170b into geerlingguy:master Feb 5, 2024
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants