crater icon indicating copy to clipboard operation
crater copied to clipboard

Cargo should not allow crates to tread on the target directory

Open aidanhs opened this issue 7 years ago • 2 comments

The tests for tarpaulin run cargo clean, which nukes the target directory.

https://github.com/xd009642/tarpaulin/blob/083fec9ef018dd38516d1929b0fbedf06042fd60/src/lib.rs#L109

aidanhs avatar Feb 17 '18 21:02 aidanhs

@pietroalbini does run-graph fix this by not sharing the target dir? My memory fails me...

aidanhs avatar Jul 13 '18 01:07 aidanhs

@aidanhs it sort of reduces the impact, because there are NUM_THREADS target directories instead of one for each toolchain. The solution for this is to lock the target directory while running tests, which should not cause too much trouble (tests are built before).

pietroalbini avatar Jul 13 '18 08:07 pietroalbini