Skip to content
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

Cannot use Cargo on Windows #917

Closed
irvingoujAtDevolution opened this issue Jul 10, 2024 · 2 comments
Closed

Cannot use Cargo on Windows #917

irvingoujAtDevolution opened this issue Jul 10, 2024 · 2 comments

Comments

@irvingoujAtDevolution
Copy link
Contributor

PS C:\Users\jou\code\devolutions-gateway> cargo --version
error: the 'cargo.exe' binary, normally provided by the 'cargo' component, is not applicable to the '1.79.0-x86_64-pc-windows-msvc' toolchain

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: BaseThreadInitThunk
  10: RtlUserThreadStart

the error message does not make too much sense to me, my cargo version is

PS C:\Users\jou\code> cargo --version
cargo 1.79.0 (ffa9cf99a 2024-06-03)

I suppose this is related to changes from yesterday.

@CBenoit
Copy link
Member

CBenoit commented Jul 11, 2024

I don’t see how the change from yesterday could possibly be bad.
I suspect you hit this bug: rust-lang/rustup#988

Try this:

$ rustup component remove cargo
$ rustup component add cargo

@irvingoujAtDevolution
Copy link
Contributor Author

I had to run this for it to work
rustup component add --toolchain 1.79.0-x86_64-pc-windows-msvc cargo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants