Skip to content

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

Closed
max-rozen-oss-db wants to merge 1 commit into
mainfrom
max-rozen-oss-db/fix-brew-databricks-formula
Closed

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

Conversation

@max-rozen-oss-db

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

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 deleted the max-rozen-oss-db/fix-brew-databricks-formula branch June 8, 2026 17:03
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

1 participant