fix(install): skip Homebrew until macOS packages need it

Keep macOS Homebrew setup lazy so users with supported Node and Git can install without admin/Homebrew, while still installing Homebrew before macOS Node or Git package installs.

Updates installer docs and adds focused install.sh coverage for the lazy Git path. Also aligns the live-media provider expectation with current main so built-artifact checks stay green.

Fixes #83232

Co-authored-by: Sebastien Tardif <sebtardif@ncf.ca>
This commit is contained in:
Sebastien Tardif
2026-05-27 01:48:04 -07:00
committed by GitHub
parent 351aac9f57
commit 527b7c2eed
4 changed files with 25 additions and 9 deletions
+4 -4
View File
@@ -1914,6 +1914,7 @@ require_sudo() {
install_git() {
if [[ "$OS" == "macos" ]]; then
install_homebrew
run_quiet_step "Installing Git" brew install git
elif [[ "$OS" == "linux" ]]; then
require_sudo
@@ -3100,12 +3101,11 @@ main() {
ui_stage "Preparing environment"
# Step 1: Homebrew (macOS only)
install_homebrew
# Step 2: Node.js
# Step 1: Node.js. macOS package-manager branches install Homebrew lazily
# only when they are about to call brew.
load_nvm_for_node_detection
if ! check_node; then
install_homebrew
install_node
fi
activate_supported_node_on_path || true