Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Offline mode #26

Closed
ibabushkin opened this issue Aug 10, 2017 · 0 comments
Closed

Offline mode #26

ibabushkin opened this issue Aug 10, 2017 · 0 comments

Comments

@ibabushkin
Copy link
Contributor

ibabushkin commented Aug 10, 2017

Even if the source of both versions is present in cargo's cache on disk, we try to update the index given a fixed version from the command line. That's rather ugly and should be changed.

Since cargo itself relies on Cargo.lock in the absence of a network connection to avoid updating the index, we'd need some more involved mechanism digging in it's guts to utilize the cache in a satisfactory manner.

ibabushkin added a commit that referenced this issue Aug 10, 2017
@ibabushkin ibabushkin changed the title A network connection is required even when it's strictly not needed. Offline mode Jun 15, 2019
ibabushkin added a commit that referenced this issue Jun 15, 2019
We currently depend on cargo 0.36 (which is the latest version from
crates.io), which doesn't have a stable `--offline` flag yet. However,
with the new call to `Config::configure`, we will be able to support it
properly in the future. With some minor changes to places where we
explicitly update the index, #26 could be solved.
ibabushkin added a commit that referenced this issue Jun 15, 2019
This will address #26 once we can merge this into master, until a
`cargo` with offline mode hits stable/crates.io this branch can be used
instead.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant