Skip to content

Commit 6b2b35a

Browse files
committed
databricks-cli: switch to replit/databricks-cli fork
Point the databricks-cli module at the Replit fork at github.com/replit/databricks-cli, branch replit-main (commit 4928653c). The fork tracks upstream v0.290.2 + 1 Replit commit, which adds --concurrency and --retry-timeout flags to `databricks sync` to mitigate 502s and let us tune in-flight request count when deploying Apps from pid2. Pinning to v0.290.2 (the same release nixpkgs is on) keeps the test skip list identical to nixpkgs upstream's, so the build matches established practice. Bumping past v0.291.0 in a future PR will require adding skip entries for the new SDK host-metadata resolver tests; that's a separate change. Slack thread: https://replit.slack.com/archives/C0A2Z9042FR/p1778082184841149 ~ written by Zerg 👾 ([wp-7918444a](https://zerg.zergrush.dev/chat?id=wp-7918444a))
1 parent 143c07c commit 6b2b35a

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

pkgs/modules/databricks-cli/default.nix

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{ pkgs, lib, ... }:
22

33
let
4-
version = "0.286.0";
4+
# Replit fork of databricks/cli. Adds --concurrency and --retry-timeout
5+
# flags to `databricks sync`. Based on upstream v0.290.2, the same release
6+
# nixpkgs is on, so the test skip list below stays in sync with nixpkgs'.
7+
# Source: https://github.com/replit/databricks-cli (replit-main branch)
8+
upstreamVersion = "0.290.2";
9+
rev = "4928653c0620fb73b20d57dda4a26a233c2546f1";
10+
version = "${upstreamVersion}-replit-${builtins.substring 0 8 rev}";
511
databricks-cli = pkgs.buildGoModule {
612
pname = "databricks-cli";
713
inherit version;
814

915
src = pkgs.fetchFromGitHub {
10-
owner = "databricks";
11-
repo = "cli";
12-
rev = "v${version}";
13-
hash = "sha256-iCmxHjIYznqed6BMQKtuYHJNFPy+3XrNzSXfhtyzPJk=";
16+
owner = "replit";
17+
repo = "databricks-cli";
18+
inherit rev;
19+
hash = "sha256-wTceEtlE2EnOe2noUWTsN0DzMIJxV8yLvyQu2M3Ts8E=";
1420
};
1521

16-
vendorHash = "sha256-TNUI2VQVKnxTiKQg9Bj3qDK2w3oOjO0rdrtTlFIhTzA=";
22+
vendorHash = "sha256-8PJ2M5L8DkL4ydtUQbw0wKvt+5rVYbOAAGvURkSMm/o=";
1723

1824
excludedPackages = [
1925
"bundle/internal"
@@ -77,8 +83,8 @@ let
7783
meta = {
7884
description = "Databricks CLI";
7985
mainProgram = "databricks";
80-
homepage = "https://github.com/databricks/cli";
81-
changelog = "https://github.com/databricks/cli/releases/tag/v${version}";
86+
homepage = "https://github.com/replit/databricks-cli";
87+
changelog = "https://github.com/databricks/cli/releases/tag/v${upstreamVersion}";
8288
license = lib.licenses.databricks;
8389
};
8490
};

0 commit comments

Comments
 (0)