From b3c1b521a0475035307b03cafa5452ebc2e29c4f Mon Sep 17 00:00:00 2001 From: conuko <50672977+conuko@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:13:35 +0100 Subject: [PATCH] fix(bootstrap): let the Homebrew installer ask for the password With NONINTERACTIVE=1 the installer only tries `sudo -n`, so on a fresh Mac without cached sudo credentials it aborts instead of prompting. Run it interactively and say in the README that it asks for the password, and that `xcode-select --install` comes first so git can clone the repo. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- bin/bootstrap | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cdbf22..2628324 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The scripts are not on `PATH`; call them by path. ### Bootstrap a machine -Installs Homebrew and the tracked packages, links managed dotfiles, creates missing local files, installs mise from [mise.run](https://mise.run) along with its runtimes, and optionally applies macOS defaults. +Installs Homebrew and the tracked packages, links managed dotfiles, creates missing local files, installs mise from [mise.run](https://mise.run) along with its runtimes, and optionally applies macOS defaults. On a fresh Mac, install Apple's command-line tools first (`xcode-select --install`) so `git` is available to clone this repo; the Homebrew installer then asks once for your password and for Enter to continue. ```bash ~/dotfiles/bin/bootstrap diff --git a/bin/bootstrap b/bin/bootstrap index cb0abe5..c52ff9d 100755 --- a/bin/bootstrap +++ b/bin/bootstrap @@ -24,8 +24,10 @@ ensure_homebrew() { return 0 fi - echo "Installing Homebrew..." - NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + # Interactive on purpose: the installer needs sudo to create its prefix, and with + # NONINTERACTIVE=1 it fails instead of asking for your password. + echo "Installing Homebrew (it asks for your password and for Enter to continue)..." + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # A fresh install is not on PATH yet in this process. local brew_bin