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

How to update properly? #5

Closed
Kixunil opened this issue Feb 15, 2017 · 5 comments
Closed

How to update properly? #5

Kixunil opened this issue Feb 15, 2017 · 5 comments

Comments

@Kixunil
Copy link

Kixunil commented Feb 15, 2017

Currently, I can't use cargo update to pull new versions of crates if I use local registry, because it tries to use that registry. And since cargo-local-registry works with Cargo.lock it won't update on it's own.

For now, I've solved it by temporarily renaming .cargo directory but I believe there should be more straightforward method.

Am I missing something or is this a missing feature?

@alexcrichton
Copy link
Collaborator

Yeah currently to update crates you'll have to temporarily un-override and then re-override after you've re-vendored

@c4augustus
Copy link

Also commenting out the .cargo/config line "#replace-with = 'local-registry'" effectively toggles the local override between "cargo update; cargo local-registry --sync Cargo.lock ..." and normal cargo usage. Although it would be preferable to have a command option (--ignore-registry-replace?), this is a critical achievement. Not only can we work offline, but cargo builds are much faster using the local registry. Thanks for this.

@lilianmoraru
Copy link

@alexcrichton Any updates on this?
I am really considering pushing this at work(we are not allowed to touch the external Internet when building our code - security reasons and to allow 10 years later to be able to come to this version and have it always work the same way).
I was not able to bring Rust into our environment because it depends a lot on crates.io and the vendoring was painful before.

@alexcrichton
Copy link
Collaborator

This is possible nowadays, it'd need to copy what's in cargo vendor

@idubrov
Copy link
Contributor

idubrov commented Dec 14, 2018

See #80.

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

5 participants