Kogia-sima / rust-covfix

Fix Rust coverage data based on source code
MIT License
14 stars 3 forks source link

Do you support `$CARGO_TARGET_DIR`? #7

Open TriplEight opened 3 years ago

TriplEight commented 3 years ago
  1. I'm making use of shared cache in the CI, thus I redirect the target dir location via $CARGO_TARGET_DIR
  2. I execute
    grcov . --binary-path ${CARGO_TARGET_DIR}/debug/ --source-dir . --output-type lcov --llvm --branch
        --ignore-not-existing --ignore "/*" --ignore "tests/*" --output-path lcov-w-branch.info
    rust-covfix lcov-w-branch.info --output lcov-w-branch-fixed.info
  3. and get
    Error: Failed to fix coverage
    Caused by: Source file "/ci-cache/ink/targets/863/crates/storage/src/alloc/mod.rs" not found
    Caused by: No such file or directory (os error 2)