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

Add option to "cargo metadata" that avoids network and filesystem changes, and ignores errors due to missing crates #5174

Closed
xzn opened this issue Mar 14, 2018 · 3 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@xzn
Copy link

xzn commented Mar 14, 2018

Motivation is from this racer issue.

Currently racer doesn't deal with replaced/patched crates and crates-io mirror correctly, it also doesn't resolve to the correct version of a crate when looking for crate source. It was suggested in comments to use "cargo metadata" which would fix all of this however this currently makes network request to update the index and crate source which seems undesirable.

How difficulty would it be to add something similar to "--frozen," but additionally avoids touching the filesystem and ignores errors due to missing crates?

@alexcrichton alexcrichton added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Mar 14, 2018
@Eh2406
Copy link
Contributor

Eh2406 commented Mar 19, 2018

Dose -Z offline #4770 help with your issues ?

@dwijnand
Copy link
Member

Optimistically close, given the presence of the offline flag (that we hope to stabilise soon)?

@alexcrichton
Copy link
Member

Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

4 participants