databricks-cli/bundle/config/validate
Pieter Noordhuis abfd1713e0
Skip sync warning if no sync paths are defined (#1926)
## Changes

Users can configure the bundle to not synchronize any files with:
```yaml
sync:
  paths: []
```

If it is explicitly configured as an empty list, the validate command
must not warn about not having any files to synchronize. The warning
exists to alert users who are unintentionally not synchronizing any
files (they might have a `.gitignore` pattern that matches everything).

Closes #1663.

## Tests

* New unit test.
2024-11-21 15:03:13 +00:00
..
all_resources_have_values.go Report all empty resources present in error diagnostic (#1685) 2024-08-20 00:22:00 +00:00
files_to_sync.go Skip sync warning if no sync paths are defined (#1926) 2024-11-21 15:03:13 +00:00
files_to_sync_test.go Skip sync warning if no sync paths are defined (#1926) 2024-11-21 15:03:13 +00:00
folder_permissions.go Fixed adding /Workspace prefix for resource paths (#1866) 2024-10-30 17:34:11 +00:00
folder_permissions_test.go Added validator for folder permissions (#1824) 2024-10-24 12:36:17 +00:00
job_cluster_key_defined.go Support multiple paths for diagnostics (#1616) 2024-07-25 15:16:27 +00:00
job_cluster_key_defined_test.go Added validate mutator to surface additional bundle warnings (#1352) 2024-04-18 15:13:16 +00:00
job_task_cluster_spec.go Add JobTaskClusterSpec validate mutator (#1784) 2024-09-25 11:30:14 +00:00
job_task_cluster_spec_test.go Add JobTaskClusterSpec validate mutator (#1784) 2024-09-25 11:30:14 +00:00
unique_resource_keys.go Pass copy of `dyn.Path` to callback function (#1747) 2024-09-05 11:05:16 +00:00
validate.go Added validator for folder permissions (#1824) 2024-10-24 12:36:17 +00:00
validate_sync_patterns.go Make fileset take optional list of paths to list (#1684) 2024-08-19 15:15:14 +00:00