databricks-cli/cmd
Pieter Noordhuis deb062c489
Fix bug where the account or workspace client could be `nil` (#1020)
## Changes

We didn't return the error upon creating a workspace or account client.
If there is an error, it must always propagate up the stack. The result
of this bug was that we were setting a `nil` account or workspace
client, which in turn caused SIGSEGVs.

Fixes #913.

## Tests

Manually confirmed this fixes the linked issue. The CLI now correctly
returns an error when the client cannot be constructed.

The issue was reproducible using a `.databrickscfg` with a single,
incorrectly configured profile.
2023-11-29 13:29:17 +00:00
..
account Bump github.com/databricks/databricks-sdk-go from 0.24.0 to 0.25.0 (#980) 2023-11-13 15:38:35 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Tolerate missing .databrickscfg file during `databricks auth login` (#1003) 2023-11-23 09:04:54 +00:00
bundle Add mlops-stacks to the default `databricks bundle init` prompt (#988) 2023-11-28 09:04:06 +00:00
configure Add `--configure-cluster` flag to configure command (#1005) 2023-11-23 19:56:48 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
labs Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
root Fix bug where the account or workspace client could be `nil` (#1020) 2023-11-29 13:29:17 +00:00
sync Make `file_path` and `artifact_path` fields consistent with json tag (#987) 2023-11-15 13:37:26 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Bump github.com/databricks/databricks-sdk-go from 0.24.0 to 0.25.0 (#980) 2023-11-13 15:38:35 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00