I am looking at example of task in https://github.com/boot-clj/boot/wiki/Filesets#examples (see "(c/deftask lc ...")The question is, why temporary directory is acquired once per task definition? Boot promises to avoid "clean" task but task definition itself is required to clean this directory every time. Given the way tasks are composed I assume that parallel execution is not considered. But a task definition might be used in more than one possibly unrelated context and sharing tmp-dir does not seem to be wise.My expectation was that temporary directory should be acquired every time inside handler and be initially empty and isolated from other executions. Is there a reason it's not implemented this way?
You raise a good point. Perhaps we should create a new directory in the example because that's probably the best default.
The primary reason to share a temp dr between invocations is when using it to store cached objects.