-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unable to pass in CLI variable override unless default is set for variable #136
Comments
@zachariahmiller I think this is similar to / in the same part of the code as the issue where you can't call tasks with inputs from the cli at all (unless they are wrapped in another task). Wondering if your pr #135 might actually fix this too? |
I have a wip pr to enable calling tasks with inputs directly in addition to the work to allow conditionals, however I don't think that will resolve this issue as inputs and set vars are still distinctly different. However, I think in the example if the default was ${ENV} then it would work once those changes are finished and merged in. |
@ntwkninja does this work?
|
This is what I've been testing against. Regardless if there are variables in either file / no variables defined (in the variables top level key), as well as, if I use ${{ .inputs.env }} or ${ENV} in the cmd: everything seems to behave the same.
|
Given the following task.yaml referenced elsewhere with an includes: ./path/to/local/file, the subsequent issue is encountered.
uds run local:plan-tofu --set=ENV=blah
If I uncomment the default and run the same command, I am able to override it with the CLI flag
The text was updated successfully, but these errors were encountered: