databricks-cli/libs/sync
shreyas-goenka bd11da88eb
Do not fail snapshot destroy if snapshot does not exist (#328)
## Changes
`bricks bundle destroy` would fail if the sync snapshot did not exist

## Tests
Manually

After:
```
shreyas.goenka@THW32HFW6T bundle-destroy % bricks bundle destroy --auto-approve
No resources to destroy!

Remote directory /Users/shreyas.goenka@databricks.com/.bundle/destroy/default will be deleted
Successfully deleted files!
```

Before:
```
shreyas.goenka@THW32HFW6T bundle-destroy % bricks bundle destroy --auto-approve
No resources to destroy!

Remote directory /Users/shreyas.goenka@databricks.com/.bundle/destroy/default will be deleted
Error: failed to destroy sync snapshot file: remove /Users/shreyas.goenka/projects/bundle-destroy/.databricks/bundle/default/sync-snapshots/a5bd1966cb8980a9.json: no such file or directory
```
2023-04-12 21:37:01 +02:00
..
repofiles Path escape filepaths in the URL (#250) 2023-03-15 17:25:57 +01:00
diff.go Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01: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 Use new logger throughout codebase (#256) 2023-03-17 15:17:31 +01:00
path_test.go Allow synchronization to a directory inside a repo (#213) 2023-02-20 14:34:48 +01:00
snapshot.go Do not fail snapshot destroy if snapshot does not exist (#328) 2023-04-12 21:37:01 +02:00
snapshot_test.go Use new logger throughout codebase (#256) 2023-03-17 15:17:31 +01:00
sync.go Delete sync snapshots file when destroying a bundle (#323) 2023-04-11 16:57:01 +02:00
watchdog.go Let sync return early if an error occurs (#235) 2023-03-09 13:29:05 +01:00