Skip to content

[FEATURE]: Install.sh should prefer homebrew on Mac, when available. #377

Description

@charlesjohnson

Summary

When the install.sh script is called on a Mac that has homebred available, the installer should prefer the homebrew installer over a direct binary download.

Additional Context

No response

Upload screenshots

No response

Searched Issues

  • No similar issues found

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. jakedipity commented on Jul 20, 2026

    @jakedipity
    Collaborator

    I don't think this is a good change. The installer going through brew is likely very unexpected. If I wanted to install with brew then I would call brew directly myself.

    I think we should revert this commit e52e88a

    And instead update the documentation to include how to install through brew directly.

  2. charlesjohnson commented on Jul 20, 2026

    @charlesjohnson
    CollaboratorAuthor

    I don't think this is a good change. The installer going through brew is likely very unexpected. If I wanted to install with brew then I would call brew directly myself.

    I think we should revert this commit e52e88a

    And instead update the documentation to include how to install through brew directly.

    I don't think we violate the principle of least surprise here, and there's a lot of advantages to wrapping the native package manager, such as automatic updates going forward. I'm also wanting to expand this pattern to wrap dnf and apt-get when we've got RPM / DEB support.

    There's a lot of existing implementations that support the pattern in this PR:

    • Netdata's kickstart.sh
    • Datadog agent installer script wraps dnf and apt-get
    • Docker
    • K3S
    • Gitlab Runners
    • Chef Workstation tools
    • Laravel Herd
  3. jakedipity commented on Jul 20, 2026

    @jakedipity
    Collaborator

    Okay, I don't disagree on any of those points. It still feels odd to me, but I haven't used many installers up to now apparently.

  4. Shearerbeard commented on Jul 20, 2026

    @Shearerbeard
    Collaborator

    Okay, I don't disagree on any of those points. It still feels odd to me, but I haven't used many installers up to now apparently.

    @jakedipity I might see some friction here now that you bring it to my attention and I think about it. The main advantage of a install.sh is that it should require minimal for a sane installation. Install.sh on rustup, stack, oh-my-zsh, etc don't expect that you have an optional package manager installed. Brew is popular but not default and not even the only package manager used by devs on mac. As @charlesjohnson mentions above dnf/apt-get are more defendable as they are defaults for those ecosystems.

  5. charlesjohnson commented on Jul 20, 2026

    @charlesjohnson
    CollaboratorAuthor

    @jakedipity I might see some friction here now that you bring it to my attention and I think about it. The main advantage of a install.sh is that it should require minimal for a sane installation. Install.sh on rustup, stack, oh-my-zsh, etc don't expect that you have an optional package manager installed. Brew is popular but not default and not even the only package manager used by devs on mac. As @charlesjohnson mentions above dnf/apt-get are more defendable as they are defaults for those ecosystems.

    We use brew if available, but don't take a dependency. It just downloads the binary as before if Brew isn't present.

  6. self-assigned this
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions