Skip to content

Add information about package caching #2411

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

Merged
merged 2 commits into from
Feb 25, 2016

Conversation

sbeckeriv
Copy link
Contributor

Per #1609 "clarify how the cache works"

Added in a single line that states that the cached packages are only
removed by running the clean command.

Please let me know if this is the wrong spot, incorrect information or just silly.
Thanks
becker

Per rust-lang#1609
Added in a single line that states that the cached packages are only
removed by running the clean command.
@rust-highfive
Copy link

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Oh in the case of ~/.cargo, the clean command doesn't actually remove anything (only in the target directory), so perhaps it could clarify that Cargo never cleans out this cache?

@sbeckeriv
Copy link
Contributor Author

Updated the text.

Is there a way to build via cargo with just the local cache crates or does the cache just prevent a duplicate download per project?

If I have no internet connect and remove a crate from my dependency list I can run cargo build fine.
If I add the same removed dependency <cached, same version and all> back to the list I can no longer build because it tries to update the registry.

@alexcrichton
Copy link
Member

@bors: r+ 7695869

Thanks!

Yeah right now there's no way to say "use local cache, and only if that fails update the registry". That's covered by #1882

@bors
Copy link
Contributor

bors commented Feb 25, 2016

⌛ Testing commit 7695869 with merge a2ca0ab...

bors added a commit that referenced this pull request Feb 25, 2016
…ichton

Per #1609 "clarify how the cache works"

Added in a single line that states that the cached packages are only
removed by running the clean command.

Please let me know if this is the wrong spot, incorrect information or just silly.
Thanks
becker
@bors
Copy link
Contributor

bors commented Feb 25, 2016

@bors bors merged commit 7695869 into rust-lang:master Feb 25, 2016
@sbeckeriv sbeckeriv deleted the cargo-cache-doc-update-1609 branch February 27, 2016 02:47
@sbeckeriv
Copy link
Contributor Author

Sorry it looks like I wrote the commit message incorrectly for bors to closed the related issue. Please close #1609

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

Successfully merging this pull request may close these issues.

5 participants