Skip to content

fix(brew): suppress cask stdout/stderr during install#100

Merged
fullstackjam merged 2 commits into
mainfrom
fix/suppress-cask-output
May 20, 2026
Merged

fix(brew): suppress cask stdout/stderr during install#100
fullstackjam merged 2 commits into
mainfrom
fix/suppress-cask-output

Conversation

@fullstackjam
Copy link
Copy Markdown
Collaborator

Summary

  • Remove pre-install `Installing X...` PrintLine for casks
  • Switch `installCaskWithProgress` from transparent stdout/stderr to `brewCombinedOutputWithTTY` — same approach as formula installs
  • Error strings now parsed via `parseBrewError` instead of bare `"install failed"`

Motivation

Formula and cask installs now use one unified voice: our own `✔ pkg (Xs)` / `✗ pkg (error)` completion lines, spinner + elapsed in the sticky bar. No more brew verbose output interleaved with our UI messages.

Test plan

  • `go test ./internal/brew/...` passes
  • `go vet ./...` clean

Remove the pre-install 'Installing X...' PrintLine and switch
installCaskWithProgress from transparent stdout/stderr to
brewCombinedOutputWithTTY — same approach as formula installs.

Result: formula and cask now both show only our own completion lines
(✔/✗) with elapsed time. No more mixing of brew's verbose output
with our UI messages. Error strings are also properly parsed via
parseBrewError instead of returning a bare 'install failed'.
@github-actions github-actions Bot added the brew Homebrew related label May 20, 2026
@fullstackjam fullstackjam merged commit 1b4e54f into main May 20, 2026
11 checks passed
@fullstackjam fullstackjam deleted the fix/suppress-cask-output branch May 20, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

brew Homebrew related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant