-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error thrown when variable is used in a config source job block #24
Comments
@carlosreyna-bread Hey! Thanks for trying Variant. Currently, a variable can depend on config, but the opposite is impossible. Do you think we need a real DAG computation among arbitrary combinations of variable and config so that it can be e.g. Also, I was trying to make Variant 2's variable resolution as much similar as possible to Terraform. Do you know if Terraform does support a DAG of e.g. arbitrary AFAIK, in Terraform, a complex dependency graph like |
@mumoshu, terraform variables cannot use locals. locals can be used on modules / resources and locals can point to outputs of modules and attributes of resources. When the local is parsed, it adds the module / resource been used into a dependency and runs the module before the local can be used.
I can see where this would be a lot of complex work, and if it cannot be done, there are work arounds, so it is not a huge deal. |
When var is used in a config source job block, it throws an error.
Error message:
Example code that throws error:
The text was updated successfully, but these errors were encountered: