🚀 Enhancements
Fix component path prefix if base component provided @aknysh (#120)
what
- Fix component path prefix if base component is provided
- Update
Go
version
why
-
If a component config is a derived component and a base component is specified (which points to the terraform component), don't derive the terraform component path from the derived component, use the base component instead
-
In the YAML config like this
eks-example/eks:
metadata:
component: eks/eks
inherits:
- eks/eks
eks/eks
is the real terraform component (where the code is defined)
eks-example/eks
is just the name of the derived component (not related to any real file paths)
The following error was thrown (because the code tried to derive the folder path prefix from the eks-example/eks
component config, not from the eks/eks
base terraform component, resulting in the subfolder eks-example
which does not exist):
Component 'eks' does not exist in 'components/terraform/eks-example'