Open
Description
Expected Behavior: Regardless of where the sources are, if files are being watched and a file among them changes, defer statements should always run before running the task again.
Taskfile:
version: '3'
tasks:
server:
watch: true
sources:
- '**/*.go'
generates:
- './tmp/main'
cmds:
- go build -o ./tmp/main ./cmd/something/
- ./tmp/main
abc:
watch: true
cmds:
- echo "started"
- defer: echo "ended"
- task: server
Output:
- Task version: v3.31.0
- Operating system: Linux
- Experiments enabled: no