1
0
mirror of https://github.com/go-task/task.git synced 2025-12-01 22:52:02 +02:00

fix: evaluate requires before compiled task (#1962)

This commit is contained in:
Valentin Maerten
2024-12-30 10:15:17 +01:00
committed by GitHub
parent d1f18d36b8
commit d64df3f9d7
3 changed files with 17 additions and 4 deletions

View File

@@ -16,3 +16,12 @@ tasks:
vars:
- name: foo
enum: ['one', 'two']
require-before-compile:
requires:
vars: [ MY_VAR ]
cmd: |
{{range .MY_VAR | splitList " " }}
echo {{.}}
{{end}}