rust-lang/rustfix

error: failed to execute compile, caused by: Bad relative path

dwijnand opened this issue · 1 comments

16:10:45 $ cargo +nightly new foo && command cd foo && cargo +nightly fix
     Created binary (application) `foo` project
    Checking foo v0.1.0 (file:///Users/dnw/Desktop/foo)
error: failed to execute compile
caused by: Bad relative path
error: Could not compile `foo`.
warning: build failed, waiting for other jobs to finish...
error: failed to execute compile
caused by: Bad relative path
error: Could not compile `foo`.

To learn more, run the command again with --verbose.

16:10:49 ! cargo +nightly -V
cargo 1.29.0-nightly (0ec7281b9 2018-08-20)

16:10:52 $ rustc +nightly -V
rustc 1.30.0-nightly (1c2e17f4e 2018-09-04)

Any ideas?

Looks like this is due to export RUSTC_WRAPPER=sccache:

16:16:03 $ echo $RUSTC_WRAPPER
sccache

16:16:09 $ unset RUSTC_WRAPPER

16:16:13 $ cargo +nightly new foo && command cd foo && cargo +nightly fix
     Created binary (application) `foo` project
    Checking foo v0.1.0 (file:///Users/dnw/Desktop/foo)
    Finished dev [unoptimized + debuginfo] target(s) in 1.30s

So clearly not a rustfix issue. I'll open an issue in cargo.