Skip to content

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

@max-rozen-oss-db

Description

@max-rozen-oss-db

Summary

On macOS, ucode's automatic Databricks CLI bootstrap runs brew install databricks. The Databricks CLI is not published to homebrew-core under that name — it lives in the databricks/tap Homebrew tap. As a result, brew install databricks resolves to an unrelated formula and installs the wrong tool (it resolves to DataGrip), leaving databricks still missing from PATH.

Where

src/ucode/databricks.py, in _run_databricks_cli_installer:

elif system == "Darwin" and shutil.which("brew"):
    run(["brew", brew_subcommand, "databricks"], timeout=240)

This is reached from both install_databricks_cli() (fresh install) and ensure_databricks_cli_version() (auto-upgrade).

Expected

The installer should tap databricks/tap before installing, per the official install instructions:

brew tap databricks/tap
brew install databricks

Actual

brew install databricks installs the wrong package; the Databricks CLI is never installed, so subsequent databricks invocations fail.

Fix

Run brew tap databricks/tap before the install/upgrade on the Homebrew path. PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions