Commit 3d8db90
Make auth profiles respect DATABRICKS_CLI_PATH env var (#4467)
## Changes
Update the `auth profiles` command to always load the value of the
`DATABRICKS_CLI_PATH` environment variable as it otherwise does not load
any environment variables.
## Why
databricks/databricks-sdk-go#1428 changed the
`databricks-cli` auth type in the Go SDK to use the CLI to fetch tokens
instead of touching the U2M token store itself. Because of this
acceptance tests break when we try to bump the go sdk version in the
CLI, as the CLI was not accessible in the test environment. This PR
makes it accessible.
## Tests
auth login acceptance tests should pass
---------
Co-authored-by: Denis Bilenko <denis.bilenko@databricks.com>1 parent ae892e5 commit 3d8db90
File tree
4 files changed
+6
-7
lines changed- acceptance/cmd/auth/login/nominal
- cmd/auth
4 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments