mirror of https://github.com/databricks/cli.git
56e393c743
## Changes Allow specifying CLI version constraints required to run the bundle Example of configuration: #### only allow specific version ``` bundle: name: my-bundle databricks_cli_version: "0.210.0" ``` #### allow all patch releases ``` bundle: name: my-bundle databricks_cli_version: "0.210.*" ``` #### constrain minimum version ``` bundle: name: my-bundle databricks_cli_version: ">= 0.210.0" ``` #### constrain range ``` bundle: name: my-bundle databricks_cli_version: ">= 0.210.0, <= 1.0.0" ``` For other examples see: https://github.com/Masterminds/semver?tab=readme-ov-file#checking-version-constraints Example error ``` sh-3.2$ databricks bundle validate Error: Databricks CLI version constraint not satisfied. Required: >= 1.0.0, current: 0.216.0 ``` ## Tests Added unit test cover all possible configuration permutations --------- Co-authored-by: Lennart Kats (databricks) <lennart.kats@databricks.com> |
||
---|---|---|
.. | ||
acc | ||
build | ||
bundle | ||
mocks | ||
python | ||
testdata | ||
testjsons | ||
testutil | ||
alerts_test.go | ||
api_test.go | ||
clusters_test.go | ||
filer_test.go | ||
fs_cat_test.go | ||
fs_cp_test.go | ||
fs_ls_test.go | ||
fs_mkdir_test.go | ||
fs_rm_test.go | ||
git_clone_test.go | ||
helpers.go | ||
init_test.go | ||
jobs_test.go | ||
locker_test.go | ||
repos_test.go | ||
secrets_test.go | ||
storage_credentials_test.go | ||
sync_test.go | ||
tags_test.go | ||
version_test.go | ||
workspace_test.go |