Skip to content

Cargo check succeeds when it shouldn't #13111

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

Closed
oriongonza opened this issue Dec 5, 2023 · 4 comments
Closed

Cargo check succeeds when it shouldn't #13111

oriongonza opened this issue Dec 5, 2023 · 4 comments
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.

Comments

@oriongonza
Copy link

oriongonza commented Dec 5, 2023

Problem

Cargo build fails and cargo check suceeds. It gets fixed on cargo clean

Steps

  1. Sometimes cargo check succeeds (in 0.01s) when it shouldn't
  2. Cargo build doesn't work
  3. if cargo clean gets run it works (fails) again

Notes

It's not extremely uncommon lately. I notice because rust-analyzer stops working.

I have no idea why this happens or how to collect more information.

Version

cargo 1.74.0 (ecb9851af 2023-10-18)
release: 1.74.0
commit-hash: ecb9851afd3095e988daaa35a48bc7f3cb748e04
commit-date: 2023-10-18
host: x86_64-unknown-linux-gnu
libgit2: 1.7.1 (sys:0.18.0 vendored)
libcurl: 8.4.0-DEV (sys:0.4.68+curl-8.4.0 vendored ssl:OpenSSL/1.1.1u)
ssl: OpenSSL 1.1.1u  30 May 2023
os: Arch Linux [64-bit]
@oriongonza oriongonza added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Dec 5, 2023
@weihanglo
Copy link
Member

Could you try getting a minimal set of steps to reproduce? It would help investigate the issue.

Some possibly relevant issues:

@weihanglo weihanglo added S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. and removed S-triage Status: This issue is waiting on initial triage. labels Dec 5, 2023
@oriongonza
Copy link
Author

As I mentioned I have no idea how to reproduce this. It just happens sometimes

@weihanglo
Copy link
Member

I am going to close this as there is no concrete reproduction for a while. Feel free to opena a new issue when you have a way to reproduce the error. Thank you.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
@oriongonza
Copy link
Author

Must have been fixed in an update because I stopped getting that error a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants