-
-
Notifications
You must be signed in to change notification settings - Fork 763
Labels
Description
Description
Have a task that defines a `requires: { vars: [] }', and additionallyuse a dynamic variable.
The dynamic variables is resolved before the requires are checked.
Version
Task version: v3.40.1 (h1:Q/TjPh5SAI+XK2fBravDPZXNGm6mvnwrLJqCXfhZ3Wc=)
Operating system
Linux
Experiments Enabled
No response
Example Taskfile
version: '3'
tasks:
test-ok:
desc: Fails correctly
requires:
vars: [ FOO ]
vars:
BAR: '{{.FOO}}'
cmds:
- echo Got {{.FOO}} {{.BAR }}
test-fail:
desc: Should fail, but already executes sh `Command "echo '' && false" failed: exit status 1`
requires:
vars: [ FOO ]
vars:
BAR:
sh: echo '{{.FOO}}' && false
cmds:
- echo Got {{.FOO}} {{.BAR }}