You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing interpolation of variables, Task will look for the below. They are listed below in order of importance (e.g. most important first):
Variables declared locally in the task
Variables given while calling a task from another. (See Calling another task above)
Variables declared in the vars: option in the Taskfile
Variables available in the Taskvars.yml file
Environment variables
So I would expect the following task file to emit "Howdy", but instead it emits "Hello"
So re-reading the docs, the phrase "Variables declared locally in the task" was confusing, to me anyway. Would it be more clear to say "Variables assigned in the task definition" ?
About your documentation question: I understand that Task is working correctly here, and documentation is correct, but indeed it was a bit confusing. I took your suggestion here: e414c1f.
The reason the precedence is as is, is to allow the task to work with the passed value, for example having a default:
Task version: 2.6.0 / darwin
The documentation states:
So I would expect the following task file to emit "Howdy", but instead it emits "Hello"
I'm not sure if this is a bug, that the docs are incorrect, or if I'm just confused.
As a side note, it seems that providing values on the command line causes a panic:
The text was updated successfully, but these errors were encountered: