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-add won't work unless index has been updated once by something else. #420

Closed
damccull opened this issue Sep 12, 2020 · 3 comments
Closed

Comments

@damccull
Copy link

I'm getting an error when trying to use cargo-add before any command that updates the index. I get this error:

Command failed due to unhandled error: failed to resolve path '/usr/local/cargo/registry/index/github.com-1ecc6299db9ec823': No such file or directory; class=Os (2); code=NotFound (-3)

I think issue #339 had a similar problem, but this is happening to me with the standard crates.io. Just like in #339, I can run cargo search <any package and then cargo add works perfectly.

@deviant
Copy link

deviant commented Apr 13, 2021

I just ran into this as well. Similarly tried cargo search, which resolved the problem. cargo-edit should probably update the local index if it's out of date/missing, or tell the user to refresh it manually.

@epage
Copy link
Collaborator

epage commented Sep 16, 2021

@ordian I suspect #483 and/or #484 fixed this

@ordian
Copy link
Collaborator

ordian commented Sep 16, 2021

Please reopen if this issue still present on master.

@ordian ordian closed this as completed Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants