Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: databricks-cli 0.290.2 -> 1.1.0 https://github.com/databricks/cli/releases attrpath: databricks-cli Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] skipping because derivation has updateScript [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/jl2nynjq2wfjnq0yxnajyhp17abv39fs-packages.json.drv building '/nix/store/jl2nynjq2wfjnq0yxnajyhp17abv39fs-packages.json.drv'... Going to be running update for following packages: - databricks-cli-0.290.2 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - databricks-cli-0.290.2: UPDATING ... - databricks-cli-0.290.2: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/da/databricks-cli/package.nix b/pkgs/by-name/da/databricks-cli/package.nix index dc930df6dd71..04f4ad442406 100644 --- a/pkgs/by-name/da/databricks-cli/package.nix +++ b/pkgs/by-name/da/databricks-cli/package.nix @@ -10,13 +10,13 @@ buildGoModule (finalAttrs: { pname = "databricks-cli"; - version = "0.290.2"; + version = "1.1.0"; src = fetchFromGitHub { owner = "databricks"; repo = "cli"; rev = "v${finalAttrs.version}"; - hash = "sha256-kIliLlOd6/1lddWK3VtxoXvP30SajDWB6zVO4gKe9Fo="; + hash = "sha256-MMVwypMxnFBYVlBmuJ2KWwfL1hXuro5BH7V5wrgl3lc="; }; # Otherwise these tests fail asserting that the version is 0.0.0-dev @@ -25,7 +25,7 @@ buildGoModule (finalAttrs: { --replace-fail "cli/0.0.0-dev" "cli/${finalAttrs.version}" ''; - vendorHash = "sha256-8PJ2M5L8DkL4ydtUQbw0wKvt+5rVYbOAAGvURkSMm/o="; + vendorHash = "sha256-OK7P+0pBaL/sn+iTrVr0m3EuqA/Pssp19JRKo6nGipk="; excludedPackages = [ "bundle/internal" No auto update branch exists Old version 0.290.2" not present in master derivation file with contents: { lib, buildGoModule, fetchFromGitHub, gitMinimal, python3, versionCheckHook, nix-update-script, }: buildGoModule (finalAttrs: { pname = "databricks-cli"; version = "1.1.0"; src = fetchFromGitHub { owner = "databricks"; repo = "cli"; rev = "v${finalAttrs.version}"; hash = "sha256-MMVwypMxnFBYVlBmuJ2KWwfL1hXuro5BH7V5wrgl3lc="; }; # Otherwise these tests fail asserting that the version is 0.0.0-dev postPatch = '' substituteInPlace bundle/deploy/terraform/init_test.go \ --replace-fail "cli/0.0.0-dev" "cli/${finalAttrs.version}" ''; vendorHash = "sha256-OK7P+0pBaL/sn+iTrVr0m3EuqA/Pssp19JRKo6nGipk="; excludedPackages = [ "bundle/internal" "acceptance" "integration" "tools/testrunner" "tools/testmask" "cmd/auth" "cmd/root" "cmd/labs/project" "libs/auth" "libs/databrickscfg" "libs/hostmetadata" ]; ldflags = [ "-X github.com/databricks/cli/internal/build.buildVersion=${finalAttrs.version}" ]; postBuild = '' mv "$GOPATH/bin/cli" "$GOPATH/bin/databricks" ''; checkFlags = "-skip=" + (lib.concatStringsSep "|" [ # Need network "TestConsistentDatabricksSdkVersion" "TestTerraformArchiveChecksums" "TestExpandGlobPathsInPipelines" "TestRelativePathTranslationDefault" "TestRelativePathTranslationOverride" "TestWorkspaceVerifyProfileForHost" "TestWorkspaceVerifyProfileForHost/default_config_file_with_match" "TestWorkspaceResolveProfileFromHost" "TestWorkspaceResolveProfileFromHost/no_config_file" "TestWorkspaceClientNormalizesHostBeforeProfileResolution" "TestClearWorkspaceClient" "TestValidateFolderPermissions" "TestFilesToSync" # Use uv venv which doesn't work with nix # https://github.com/astral-sh/uv/issues/4450 "TestVenvSuccess" "TestPatchWheel" # Requires HOME to be set "TestCacheDirEnvVar" ]); nativeCheckInputs = [ gitMinimal (python3.withPackages ( ps: with ps; [ setuptools wheel ] )) ]; preCheck = '' # Some tested depends on git and remote url git init git remote add origin https://github.com/databricks/cli.git ''; __darwinAllowLocalNetworking = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/databricks"; doInstallCheck = true; passthru = { updateScript = nix-update-script { }; }; meta = { description = "Databricks CLI"; mainProgram = "databricks"; homepage = "https://github.com/databricks/cli"; changelog = "https://github.com/databricks/cli/releases/tag/v${finalAttrs.version}"; license = lib.licenses.databricks; maintainers = with lib.maintainers; [ kfollesdal taranarmo ]; }; })