task
task copied to clipboard
Yaml anchor insertion is not correctly recognised, and falls back to error in default branch
Description
YAML anchors are not correctly recognised, so they end up in the default statement, and error out.
Version
3.41.0
Operating system
Ubuntu
Experiments Enabled
No response
Example Taskfile
version: '3'
tasks:
foo:
vars: &anchor
FOO: true
bar:
vars:
<<: *anchor
BAR: true
There seems to be a difference when adding vars: *anchor as a oneliner, and using <<: *anchor next to other vars. The latter is triggering the error.