1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

Bugfix: allow templating when calling deps

Fixes issue #42 by allowing for template evaluatation on task override
variables when the task is launched as dependency.
This commit is contained in:
Sindre Myren
2017-07-09 23:37:50 +02:00
parent 5268df6bfd
commit a548c63a92
3 changed files with 12 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ default:
vars: {CONTENT: Dependence1, FILE: dep1.txt}
- task: write-file
vars: {CONTENT: Dependence2, FILE: dep2.txt}
- task: write-file
vars: {CONTENT: "{{.SPANISH|replace \"mundo\" \"dependencia\"}}", FILE: spanish-dep.txt}
cmds:
- task: write-file
vars: {CONTENT: Hello, FILE: hello.txt}