-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo check use older version of code #15073
Comments
Updating cargo with
I still have an archive of my old project with bug, including target directory If you need |
Updating toolchain works because caches are not compatible between two versions of Rust. Would you mind adding |
I cannot reproduce the problem, possibly because I updated my cargo version to 1.84. I tried |
Maybe set the env var |
Similar issues btw: |
|
Problem
cargo check
raise error although it should not,cargo build
works fine.file_1.rs
of my code base call a function from another filefile_2.rs
.cargo check
seems to use an older version offile_2.rs
. which raises errorSteps
I am unsure on how to reproduce the error. I tried to provide an archive of my project but compressed archive weight 200 MB, upload thus fails on github. If I try to remove
target/
then upload might work but problem disappearPossible Solution(s)
Cargo check should know the file has changed and, therefore, not raise an error.
Notes
Here are some more advanced details on how
I work on a project with two subprojects
yake_rust
provides libs and stuff whileyake
provides CLI, yake depends on yake_rustcli.rs
definesparse_language
as such:ok_or_else
is a method forOption
returned by StopWords::predefined defined inyake_rust/src/stopwords/mod.rs
:However an older version of this code used
Result
as a return type of StopWords:running
cargo check
I got :It feels like
cargo check
use a cached version of this file.cargo build
work fine thoughVersion
The text was updated successfully, but these errors were encountered: