-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Required vars not required when calling tasks #1557
Comments
Tried this:
which yields:
Can you provide a more complete example that causes the problem? Is it possible that ".PROJ" was defined somewhere in "common:helm-diff" and so was actually considered not missing? |
Happened to me as well, here is a minimal example:
Now running: Should fail, but instead prints: |
I have another example on v3.40.0:
Expected: "requires" prevents task execution The bug is caused by the function call in the template. If the loop is a simple range, the expected behavior happens, "requires" stops the task's execution:
|
I tried looking to see if this was already an issue but did not find anything. Also, wasn't sure if this is a bug or a feature request.
Expected running
task helm-diff
fails with:task: Task "helm-diff" cancelled because it is missing required variables: PROJ
Actual task runs successfully.
Note:
PROJ
has no default value. For comparison, this works as expected.v3.35.1
The text was updated successfully, but these errors were encountered: