Uh oh!
There was an error while loading. Please reload this page.
Add DATABRICKS_BUNDLE_TMP env variable - #462
Conversation
| panic("environment not set") | ||
| } | ||
| cacheDirName, exists := os.LookupEnv("DATABRICKS_BUNDLE_TMP") |
There was a problem hiding this comment.
shouldn't we use the root dir instead? e.g. there's already the env variable for root
There was a problem hiding this comment.
It was @pietern suggestion. I think the rationale is that we do want to keep some files in ".databricks"
There was a problem hiding this comment.
The BUNDLE_ROOT env var is to specify the root of the bundle sources if it cannot be derived from $PWD.
(we should rename that to DATABRICKS_BUNDLE_ROOT btw...).
pietern
commented
Jun 13, 2023
@kanterov Thanks for the PR. Could you add a unit test for this as well? Without one this could regress in the future. |
kanterov
commented
Jun 13, 2023
@pietern I've added tests, please take a look again |
pietern
left a comment
There was a problem hiding this comment.
Thanks, the change LGTM. One remaining question.
Uh oh!
There was an error while loading. Please reload this page.
## Changes CLI: * Add --absolute flag for ls command ([#508](#508)). * Add dbfs scheme prefix to paths in cp command output ([#516](#516)). * Add provider detection to the repos create command ([#528](#528)). * Added configure-cluster flag for auth login ([#500](#500)). * Added prompts for Databricks profile for auth login command ([#502](#502)). * Allow specifying repo by path for repos commands ([#526](#526)). * Decode contents by default in workspace export command ([#531](#531)). * Fixed jobs create command to only accept JSON payload ([#498](#498)). * Make local files default for fs commands ([#506](#506)). * Remove \r from new line print statments ([#509](#509)). * Remove extra call to filer.Stat in dbfs filer.Read ([#515](#515)). * Update alerts command integration test ([#512](#512)). * Update variable regex to support hyphens ([#503](#503)). Bundles: * Add DATABRICKS_BUNDLE_TMP env variable ([#462](#462)). * Update Terraform provider schema structs ([#504](#504)). Dependencies: * Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 ([#497](#497)). Internal: * Use direct download for workspace filer read ([#514](#514)).
## Changes Add DATABRICKS_BUNDLE_TMP env variable. It allows using a temporary directory instead of writing to `$CWD/.databricks/bundle` ## Tests I added unit tests --------- Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
## Changes CLI: * Add --absolute flag for ls command ([#508](#508)). * Add dbfs scheme prefix to paths in cp command output ([#516](#516)). * Add provider detection to the repos create command ([#528](#528)). * Added configure-cluster flag for auth login ([#500](#500)). * Added prompts for Databricks profile for auth login command ([#502](#502)). * Allow specifying repo by path for repos commands ([#526](#526)). * Decode contents by default in workspace export command ([#531](#531)). * Fixed jobs create command to only accept JSON payload ([#498](#498)). * Make local files default for fs commands ([#506](#506)). * Remove \r from new line print statments ([#509](#509)). * Remove extra call to filer.Stat in dbfs filer.Read ([#515](#515)). * Update alerts command integration test ([#512](#512)). * Update variable regex to support hyphens ([#503](#503)). Bundles: * Add DATABRICKS_BUNDLE_TMP env variable ([#462](#462)). * Update Terraform provider schema structs ([#504](#504)). Dependencies: * Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 ([#497](#497)). Internal: * Use direct download for workspace filer read ([#514](#514)).
Changes
Add DATABRICKS_BUNDLE_TMP env variable. It allows using a temporary directory instead of writing to
$CWD/.databricks/bundleTests
I added unit tests