Skip to content

Fix macOS Databricks CLI auto-install to install the correct formula#145

Open
max-rozen-oss-db wants to merge 1 commit into
databricks:mainfrom
max-rozen-oss-db:fix/brew-tap-databricks-cli
Open

Fix macOS Databricks CLI auto-install to install the correct formula#145
max-rozen-oss-db wants to merge 1 commit into
databricks:mainfrom
max-rozen-oss-db:fix/brew-tap-databricks-cli

Conversation

@max-rozen-oss-db

@max-rozen-oss-db max-rozen-oss-db commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

What

On the macOS/Homebrew path, the Databricks CLI auto-installer now installs the fully-qualified databricks/tap/databricks formula instead of databricks.

Why

brew install databricks does not install the Databricks CLI — the CLI is published to the databricks/tap tap, not homebrew-core. Without qualifying the tap, databricks resolves to an unrelated formula (DataGrip), so the CLI is never installed and later databricks calls fail.

Using the fully-qualified formula resolves directly to the Databricks CLI and fails if the formula is missing, rather than silently falling back to the cask.

How

In _run_databricks_cli_installer, install databricks/tap/databricks, matching the official Homebrew install steps. Covers both the fresh-install and auto-upgrade paths.

Testing

  • TestRunDatabricksCliInstaller (parametrized over install/upgrade) pins that the macOS path invokes brew <sub> databricks/tap/databricks.
  • uv run pytest tests/test_databricks.py — 74 passed.
  • uv run ruff check — clean.

Closes #144

@max-rozen-oss-db max-rozen-oss-db force-pushed the fix/brew-tap-databricks-cli branch 2 times, most recently from 152b87c to 0291976 Compare June 8, 2026 14:56
@max-rozen-oss-db max-rozen-oss-db changed the title Fix macOS Databricks CLI auto-install to tap databricks/tap first Fix macOS Databricks CLI auto-install to use the databricks/tap formula Jun 8, 2026
@max-rozen-oss-db max-rozen-oss-db changed the title Fix macOS Databricks CLI auto-install to use the databricks/tap formula Fix macOS Databricks CLI auto-install to install the correct formula Jun 8, 2026
On macOS the auto-installer ran `brew install databricks`, but the
Databricks CLI is not in homebrew-core under that name — `databricks`
resolves to an unrelated formula (the DataGrip cask), so users got the
wrong tool installed.

Install the fully-qualified `databricks/tap/databricks` formula instead,
which resolves to the Databricks CLI and fails if the formula is
missing, rather than silently falling back to the cask. Applies to both
the install and upgrade paths.

Co-authored-by: Isaac
@max-rozen-oss-db max-rozen-oss-db force-pushed the fix/brew-tap-databricks-cli branch from 0291976 to 1a3f6ce Compare June 8, 2026 17:36
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.

macOS auto-install runs brew install databricks, which installs the wrong tool

2 participants