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

cargo upgrade stopped working for good #475

Closed
ralfbiedert opened this issue Aug 5, 2021 · 3 comments
Closed

cargo upgrade stopped working for good #475

ralfbiedert opened this issue Aug 5, 2021 · 3 comments

Comments

@ralfbiedert
Copy link

Here is vaguely what happened:

  • Not sure if related, but I used cargo workspaces to push new crates. On the last crate the command hung and I CTRL-C'ed it.
  • Back in my other project I tried to run cargo upgrade which then only produced
    ❯ cargo upgrade --workspace
    Command failed due to unhandled error: Looks like (C:\Users\rb\.cargo\registry\index\suiyiyu.us.kg-1ecc6299db9ec823\.git\refs/remotes/origin/) is empty
    
  • Moving away the suiyiyu.us.kg-1ecc6299db9ec823 folder didn't help either, as I then received
    ❯ cargo upgrade --workspace
    Command failed due to unhandled error: The system cannot find the path specified. (os error 3)
    

Before this incident I have been using cargo-edit without issues for several months, but now I get the same error for any project I try to upgrade. Other cargo commands seem to run just fine.

@ralfbiedert
Copy link
Author

Update, could fix it by removing .cargo/git and .cargo/registry.

@ordian
Copy link
Collaborator

ordian commented Sep 16, 2021

is this still an issue with the current master, if so how can we reproduce?

@ralfbiedert
Copy link
Author

Can't really reproduce it myself, since I removed the two folders it didn't happen anymore.

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

No branches or pull requests

3 participants