databricks-cli/bundle/python
Pieter Noordhuis 6e8cd835a3
Add paths field to bundle sync configuration (#1694)
## Changes

This field allows a user to configure paths to synchronize to the
workspace.

Allowed values are relative paths to files and directories anchored at
the directory where the field is set. If one or more values traverse up
the directory tree (to an ancestor of the bundle root directory), the
CLI will dynamically determine the root path to use to ensure that the
file tree structure remains intact.

For example, given a `databricks.yml` in `my_bundle` that includes:

```yaml
sync:
  paths:
    - ../common
    - .
```

Then upon synchronization, the workspace will look like:
```
.
├── common
│   └── lib.py
└── my_bundle
    ├── databricks.yml
    └── notebook.py
```

If not set behavior remains identical.

## Tests

* Newly added unit tests for the mutators and under `bundle/tests`.
* Manually confirmed a bundle without this configuration works the same.
* Manually confirmed a bundle with this configuration works.
2024-08-21 15:33:25 +00:00
..
conditional_transform_test.go Add paths field to bundle sync configuration (#1694) 2024-08-21 15:33:25 +00:00
transform.go Return early in bundle destroy if no deployment exists (#1581) 2024-07-09 15:08:38 +00:00
transform_test.go Stop tracking file path locations in bundle resources (#1673) 2024-08-13 12:50:15 +00:00
warning.go Expand and upload local wheel libraries for all task types (#1649) 2024-08-05 14:44:23 +00:00
warning_test.go Show a better error message for using wheel tasks with older DBR versions (#1373) 2024-04-23 19:36:25 +00:00