Open tmarshall opened 6 years ago
^ full taskfile content (with serial
fix) here: https://github.com/ConjureLabs/hob/blob/master/taskfile.js
Hi, i guess it is known issue, this is because when you run run tasks in parallel they started at the same time and share same internal context. That's why some internal vars polluted. Simple fix will be just to use serial
in copyDirs
task.
@hzlmn did that, but seems non-intuitive. Can't scope context per job?
I have a taskfile that has a portion like this:
taskr build
is myyarn build
This should copy all
.js
files and.
files (specifically.gitignore
) fromprocs
todist/procs
It should also copy all
.
files (specifically.eslintrc
and.jscsrc
) fromconf
todist/conf
When run, it is copying
.eslintrc
and.jscsrc
to bothdist/conf
anddist/procs
.If I change the content of
function copyDirs
toawait task.serial(['copyProcs', 'copyConf'])
it works as expected.Not sure what the reason it.