Skip to content

fix(dev): stop assuming Homebrew in ./dev/up - #566

Open
doresa0 wants to merge 1 commit into
xmtp:mainfrom
doresa0:fix/dev-up-non-macos
Open

doresa0 wants to merge 1 commit into
xmtp:mainfrom
doresa0:fix/dev-up-non-macos

Conversation

@doresa0

@doresa0 doresa0 commented Aug 11, 2026

Copy link
Copy Markdown

Summary

./dev/up called brew unconditionally and broke Linux/other hosts. Use brew when present; otherwise print clear install hints.

Testing

  • bash -n dev/up

Closes #512

Note

Stop assuming Homebrew is available in dev/up

Adds a reusable ensure_cmd helper to dev/up that checks whether a required command exists before attempting installation. If Homebrew is available it installs the specified package; otherwise it prints an error with OS-specific hints to stderr and exits with status 1. Behavioral Change: on non-macOS or Homebrew-free environments, missing tools (chronic, golangci-lint, shellcheck, protoc, mockery) now cause the script to abort rather than silently proceed.

Macroscope summarized 4455bea.

Use brew when present; otherwise fail with install hints so Linux/other
nix hosts are not broken by unconditional brew calls.

Closes xmtp#512
@doresa0
doresa0 requested a review from a team as a code owner August 11, 2026 06:20
@insipx insipx self-assigned this Aug 11, 2026
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.

Bug: dev/up assumes MacOS

2 participants