Describe the bug
According to the docs variables are inherited by any dependency templates. This works as expected. By extension though, I would expect those variables to also be available to any partials that are used in any dependency templates. However, any partials that reference inherited variables error out with an error like
ERRO[2025-03-10T13:59:38-07:00] template: demo.hcl:3:45: executing "demo" at <.test>: nil data; no entry for key "test" binary=boilerplate version=v0.6.0
To Reproduce
There's a demo project here: https://github.com/tgeijg/bp-demo
Execute with
boilerplate --template-url ./template --output-folder ./output --var-file ./vars.yml
Error should pop up as mentioned above. Note that the inherited variable is available in the dependency template itself, but not in the partial included in the dependency template.
Expected behavior
Inherited variables should be available in both dependency templates as well as any partials included in those dependency templates.
Describe the bug
According to the docs variables are inherited by any dependency templates. This works as expected. By extension though, I would expect those variables to also be available to any partials that are used in any dependency templates. However, any partials that reference inherited variables error out with an error like
To Reproduce
There's a demo project here: https://github.com/tgeijg/bp-demo
Execute with
Error should pop up as mentioned above. Note that the inherited variable is available in the dependency template itself, but not in the partial included in the dependency template.
Expected behavior
Inherited variables should be available in both dependency templates as well as any partials included in those dependency templates.