-
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
can't find crate for 'XYZ' (windows-msvc only) #15137
Comments
This comment has been minimized.
This comment has been minimized.
@jieyouxu Did you clone the git submodules too? 🤔 |
I suspect this is a cargo resolver v2 feature unification thing, but I'm having a hard time pinning down which one is causing it (the main package's transitive deps vs the
seems more likely to be a cargo dep resolution thing, so going to transfer this issue to cargo issue tracker (but please do kick it back to rust-lang/rust if it doesn't seem like a cargo concern). Not sure if helpful for cargo triagers, but here's `cargo +nightly tree -d -f '{p} {f}'`
@rustbot transfer cargo |
This comment has been minimized.
This comment has been minimized.
I'm also having this issue. I've tried to debug as much as possible. All of a sudden cargo can't find crate. I've done
and a few other things and I keep hitting
I've confirmed I have the files in the cargo registry. |
Did you mean the first Were you also on Windows? Note that the original issue was described as only happening on Windows. |
Yes that's what happened. Reproducing in a minimal example might be difficult I think it's because there are two versions of the dependencies in my workspace so I'll try and make a reproducible example.
No I'm on NixOs but I saw |
@MilesConn for NixOS/Nixpkgs, see #12935 (comment). I am 98% sure the 'XYZ' crate you saw was proc-macro related. |
Hi,
I'm unable to build the diffusion-rs library using x86_64-pc-windows-msvc toolchain.
First time that I had this issue was in November when using gh runner logs: at the time I didn't give too much weight to the problem since on my Windows machine it compiled correctly and I assumed there was some problem with windows runner.
Since last Wednesday I've been having the same issue on my local machine too: I've tried toolchian from 1.80 to 1.84.1 (+ nightly) with the same result.
Linux and Macos work just fine.
I'm pretty sure I have seen some updates to vs build tools running in windows update but i don't recall which they are precisely.
Build command:
cargo build
Let me know if there is any other information I can provide
Backtrace
The text was updated successfully, but these errors were encountered: