I started to look into the code of this project, and the tests failed randomly. Copying files from the template dir into the temporary dir is not awaited correctly.
Sometimes, the file copying is not fast enough, and the CLI fails because it cannot find or read the content of the "copied" pubspec.yaml.
For some reference on how forEach works on a Stream, click here. The new code uses a for loop, which awaits the processing of the stream elements.
I started to look into the code of this project, and the tests failed randomly. Copying files from the template dir into the temporary dir is not awaited correctly.
Sometimes, the file copying is not fast enough, and the CLI fails because it cannot find or read the content of the "copied"
pubspec.yaml
.For some reference on how
forEach
works on aStream,
click here. The new code uses afor
loop, which awaits the processing of the stream elements.