databricks-cli/libs/sync
shreyas-goenka a7a109a5d8
Remove base path checks during sync (#576)
## Changes
Earlier we removed recursive deletion from sync. This makes it safe
enough for us to not restrict sync to just the namespace of the user.

This PR removes that base path validation. 

Note: If the sync destination is under `/Repos` we still only create
missing directories required if the path is under my namespace ie
matches `/Repos/@me/`

## Tests
Manually

Before:
```
shreyas.goenka@THW32HFW6T hello-bundle % cli bundle deploy
Starting upload of bundle files
Error: path must be nested under /Users/shreyas.goenka@databricks.com or /Repos/shreyas.goenka@databricks.com
```

After:
```
shreyas.goenka@THW32HFW6T hello-bundle % cli bundle deploy
Starting upload of bundle files
Uploaded bundle files at /Shared/common-test/hello-bundle/files!

Starting resource deployment
Resource deployment completed!
```
2023-07-14 11:43:20 +02:00
..
diff.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
diff_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
dirset.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
dirset_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
event.go Drain sync event channel before returning (#253) 2023-03-16 17:48:17 +01:00
event_test.go Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01:00
path.go Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
path_test.go Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
snapshot.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
snapshot_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
sync.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
watchdog.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00