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
, where merge the included file's variables into the parent.
Is this intentional behaviour? I would expect that the parent could provide defaults for the child, or override via include.*.vars, but it is surprising to have the child influence values on the parent.
If this is indeed a bug, I'd be happy to contribute a fix.
When I include a Taskfile that has
env
andvars
that overlap the parent taskfile, the parent file's variables get overwritten at parent tasks' scope.I am running
task
with the following files:Taskfile.yml
Taskfile.child.yml
Expected output:
Actual output:
I believe the code responsible is here:
task/taskfile/ast/taskfile.go
Lines 56 to 57 in 114d5e1
Is this intentional behaviour? I would expect that the parent could provide defaults for the child, or override via
include.*.vars
, but it is surprising to have the child influence values on the parent.If this is indeed a bug, I'd be happy to contribute a fix.
The text was updated successfully, but these errors were encountered: