Open 13ros27 opened 3 years ago
This looks like a Cargo issue.
It's a cargo issue, and I found that only happens on Windows, Linux seems more stable
warning: Hard linking files in the incremental compilation cache failed. Copying files instead. Consider moving the cache directory to a file system which supports hard linking in session dir \\?\F:\Codehub\ rust0\guessing_game\target\debug\incremental\guessing_game-2r2d7mvc5tb4y\s-gh7rm9tuo5-th8ngn-working
I'm having the same issue too.
这是一个货物问题,我发现只发生在Windows上,Linux似乎更稳定。
大神您好~在两年后的今天,我又遇到了这个问题
I took all the build files so, src, target, Cargo.lock and Cargo.toml from one drive and moved them over to another drive and then ran
cargo run
. This resulted in a compiler error and it almost certainly shouldn't be supported and can be fixed simply by clearing the target directory and compiling again but it should possibly give a readable error to the user maybe suggesting they clear their target directory?Code
Unfortunately I'm not really sure of a minimum example as this was a basic bevy build but I don't think this depends on the code, if it does I can share the code I used.
Meta
rustc --version --verbose
:Error output