Description
When using requires with vars, it fails to show which required variable is missing.
task: Task "database" cancelled because it is missing required variables:
Expected to see:
task: Task "database" cancelled because it is missing required variables: DB
Version
3.43.3
Operating system
Ubuntu 22.04.5 LTS
Experiments Enabled
No response
Example Taskfile
version: '3'
tasks:
database:
desc: Open database
silent: true
vars:
DB: '{{.d}}'
NAME: '{{.n}}'
requires:
vars:
- DB
cmds:
- |
echo "{{.DB}}-{{.NAME}}"