- Task version: v3.20.0
- Operating System: macOS 13.2
Taskfile.yml:
test-dir:
dir: does-not-exist
cmds:
- echo {{.TEST}}
vars:
TEST:
sh: cat ../exist.txt
dir is documented to create a directory if it does not exist, but that not happens there. If directory "does-not-exist" does not exist, that task fails with:
task: Command "cat ../exist.txt" failed: chdir /<...>/does-not-exist: no such file or directory
So it tries to change directory to "does-not-exist" without creating it.
Taskfile.yml:diris documented to create a directory if it does not exist, but that not happens there. If directory "does-not-exist" does not exist, that task fails with:So it tries to change directory to "does-not-exist" without creating it.