databricks-cli/bundle
Andrew Nester b14920cd12
Fixed error reporting when included invalid files in include section (#543)
## Changes
Fixed error reporting when included invalid files in include section

Case 1. When the file to include is invalid, throw an error
Case 2. When the file is loaded but the schema is wrong, indicate which
file is failed to load

## Tests

With non-existent notexists.yml

```
databricks bundle deploy
Error: notexists.yml defined in 'include' section does not match any files

```

With malformed notexists.yml
```
databricks bundle deploy
Error: failed to load /Users/andrew.nester/dabs/wheel/notexists.yml: error unmarshaling JSON: json: cannot unmarshal string into Go value of type config.Root
```
2023-07-07 10:22:58 +00:00
..
artifacts Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
config Fixed error reporting when included invalid files in include section (#543) 2023-07-07 10:22:58 +00:00
deploy Bump Go SDK to v0.12.0 (#540) 2023-07-03 11:46:45 +02:00
deployer Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
internal/tf Update Terraform provider schema structs (#504) 2023-06-21 08:40:11 +02:00
phases Fix: bundle destroy fails when bundle.tf.json file is deleted (#519) 2023-07-05 21:58:06 +02:00
run Update with the latest Go SDK (#457) 2023-06-12 14:23:21 +02:00
schema Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
tests Fixed error reporting when included invalid files in include section (#543) 2023-07-07 10:22:58 +00:00
bundle.go Application -> Asset (#529) 2023-06-27 01:31:20 +02:00
bundle_test.go Add DATABRICKS_BUNDLE_TMP env variable (#462) 2023-06-21 09:53:54 +02:00
context.go Make sync command work in bundle context; reorder args (#207) 2023-02-20 11:33:30 +01:00
context_test.go Add command that writes the materialized bundle configuration to stdout (#95) 2022-11-21 15:39:53 +01:00
deferred.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
deferred_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
root.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
root_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
seq.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
seq_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00