databricks-cli/bundle/config/loader
Pieter Noordhuis eea34b2504
Return diagnostics from `config.Load` (#1324)
## Changes

We no longer need to store load diagnostics on the `config.Root` type
itself and instead can return them from the `config.Load` call directly.
It is up to the caller of this function to append them to previous
diagnostics, if any.

Background: previous commits moved configuration loading of the entry
point into a mutator, so now all diagnostics naturally flow from
applying mutators.

This PR depends on #1319.

## Tests

Unit and manual validation of the debug statements in the validate
command.
2024-03-28 10:59:03 +00:00
..
testdata Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00
entry_point.go Return diagnostics from `config.Load` (#1324) 2024-03-28 10:59:03 +00:00
entry_point_test.go Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00
process_include.go Return diagnostics from `config.Load` (#1324) 2024-03-28 10:59:03 +00:00
process_include_test.go Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00
process_root_includes.go Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00
process_root_includes_test.go Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00