When using a .env file to define environment variables that rely on other variables using {{.VAR}} template syntax, the variables sometimes expand inconsistently across task runs. The issue becomes more apparent as the variables become more deeply nested.
When using a
.env
file to define environment variables that rely on other variables using{{.VAR}}
template syntax, the variables sometimes expand inconsistently across task runs. The issue becomes more apparent as the variables become more deeply nested.Steps to Reproduce:
Create a
Taskfile.yml
:Create a
.env
File:Run the task multiple times:
Sample Outputs: