databricks-cli/bundle/config/mutator
Pieter Noordhuis 31ccebd62a
Store relative path to configuration file for every resource (#322)
## Changes

If a configuration file is located in a subdirectory of the bundle root,
files referenced from that configuration file should be relative to its
configuration file's directory instead of the bundle root.

## Tests

* New tests in `bundle/config/mutator/translate_paths_test.go`.
* Existing tests under `bundle/tests` pass and are augmented to assert
on paths.

---------

Co-authored-by: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com>
2023-04-12 16:17:13 +02:00
..
default_environment.go No need for nil check on map (#143) 2022-12-15 21:28:27 +01:00
default_environment_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
default_include.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
default_include_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
default_workspace_paths.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
default_workspace_paths_test.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
default_workspace_root.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
default_workspace_root_test.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
expand_workspace_root.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
expand_workspace_root_test.go Add workspace paths (#179) 2023-01-26 19:55:38 +01:00
mutator.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
populate_current_user.go Mutators to define current user and default artifact path (#112) 2022-12-01 11:17:29 +01:00
populate_current_user_test.go Mutators to define current user and default artifact path (#112) 2022-12-01 11:17:29 +01:00
process_include.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
process_include_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
process_root_includes.go Materialize glob expansion in configuration struct (#217) 2023-02-20 21:01:28 +01:00
process_root_includes_test.go Materialize glob expansion in configuration struct (#217) 2023-02-20 21:01:28 +01:00
select_default_environment.go Handle nil environment (#154) 2022-12-22 15:31:32 +01:00
select_default_environment_test.go Handle nil environment (#154) 2022-12-22 15:31:32 +01:00
select_environment.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
select_environment_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
translate_paths.go Store relative path to configuration file for every resource (#322) 2023-04-12 16:17:13 +02:00
translate_paths_test.go Store relative path to configuration file for every resource (#322) 2023-04-12 16:17:13 +02:00