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

Updating local registry #8273

Closed
serayuzgur opened this issue May 24, 2020 · 4 comments
Closed

Updating local registry #8273

serayuzgur opened this issue May 24, 2020 · 4 comments

Comments

@serayuzgur
Copy link

Hi,
I am the maintainer of the crates extension for vsc. We added a feature for fetching crates versions from local registry. Since we couldn't find any way to update the registry with a cargo
command is it ok to git pull https://github.com/rust-lang/crates.io.git to the ~/.cargo/registry/index/github.com-1ecc6299db9ec823/ folder ?

The issue is here

@alexcrichton
Copy link
Member

Thanks for the report! The internal git repository Cargo uses doesn't have stability guarantees about it and we're not able to commit to any git operation working one way or another at this time. If you've got a need for this it'd be great to discuss it in a feature request to see if Cargo can support your use case!

@bestia-dev
Copy link

Many cargo commands start with Updating crates.io index:
image
For example: cargo check, cargo build, cargo update,...
Is it possible to call only this action standalone with a cargo command?
Maybe like this cargo update --crates-io-index
The extension of @serayuzgur needs the local index to be updated to show the user fresh data.

@lnicola
Copy link
Member

lnicola commented May 27, 2020

See also #3377.

@bestia-dev
Copy link

Thanks @lnicola , I see this has a long history. And there are no stability guarantee, anyway.

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