Skip to content

Let the Homebrew installer in bootstrap ask for the password - #2

Merged
conuko merged 1 commit into
mainfrom
fix-bootstrap-homebrew-prompt
Nov 2, 2026
Merged

conuko merged 1 commit into
mainfrom
fix-bootstrap-homebrew-prompt

Conversation

@conuko

@conuko conuko commented Nov 2, 2026

Copy link
Copy Markdown
Owner

What changed

  • bin/bootstrap runs the Homebrew installer interactively instead of with NONINTERACTIVE=1, and tells you it will ask for your password and for Enter.
  • The README's bootstrap section says to run xcode-select --install first, so git exists to clone the repo, and that Homebrew asks for the password once.

Why

With NONINTERACTIVE=1, the Homebrew installer only tries sudo -n, which never prompts. On a fresh Mac without cached sudo credentials, it aborts with "Insufficient permissions" instead of asking for the password. So far the workaround was running sudo -v before bootstrap.

When you run bootstrap yourself from a terminal, the installer is now interactive. It still switches to non-interactive mode on its own when its input isn't a terminal or CI is set.

Testing

  • shellcheck bin/bootstrap passes.
  • Confirmed in the installer source that interactive mode runs sudo -v, which prompts.
  • Not tested end to end: Homebrew is already installed here, so bootstrap skips the install step.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@conuko
conuko merged commit 3090d7a into main Nov 2, 2026
2 checks passed
@conuko
conuko deleted the fix-bootstrap-homebrew-prompt branch November 2, 2026 21:14
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.

1 participant