Add Databricks CLI v0.286.0 as a nix module (CLOUD-3765)#477
Merged
luketchang merged 2 commits intomainfrom Mar 21, 2026
Merged
Add Databricks CLI v0.286.0 as a nix module (CLOUD-3765)#477luketchang merged 2 commits intomainfrom
luketchang merged 2 commits intomainfrom
Conversation
Add a new module that packages the pre-built Databricks CLI binary from GitHub releases so Repls can have the databricks command available by default for Databricks apps.
airportyh
approved these changes
Mar 20, 2026
Rework the derivation to use buildGoModule + fetchFromGitHub instead of downloading a pre-built binary tarball. This follows the upstream nixpkgs package.nix pattern with version bumped to 0.286.0. Changes: - Build from source with buildGoModule for reproducibility - Add meta.license = lib.licenses.databricks - Add databricks-cli to allowUnfreePredicate in flake.nix - Exclude tools/testmask (new in v0.286.0, not a distributable package) - Skip TestCacheDirEnvVar (fails in nix sandbox, no home directory)
lhchavez
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Databricks apps on Replit need the
databricksCLI available by default. Currently users have to manually download it. Adding it as a nix module makes it available in the nix cacache so Repls have this CLI out of the box.Slack thread: https://slack.com/archives/D0AFAFQP10E/p1773937534232109
What changed
databricks-climodule underpkgs/modules/databricks-cli/default.nixthat builds the Databricks CLI v0.286.0 from source usingbuildGoModule+fetchFromGitHub, following the upstream nixpkgs patternpkgs/modules/default.nixdatabricks-clitoallowUnfreePredicateinflake.nixsince the Databricks license is classified as unfreetools/testmask(new package that isn't distributable)TestCacheDirEnvVartest (fails in nix sandbox due to missing home/cache directory)Test plan
nix build '.#activeModules.databricks-cli'— compiles from source, all tests pass (~2m45s check phase)nix build '.#activeDeploymentModules.databricks-cli'— builds successfullyRollout
~ written by Zerg 👾