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

Support for clone subcommad #8888

Closed
UebelAndre opened this issue Nov 23, 2020 · 2 comments
Closed

Support for clone subcommad #8888

UebelAndre opened this issue Nov 23, 2020 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@UebelAndre
Copy link

Describe the problem you are trying to solve
I'd like a sub command (cargo clone) to exist that fetches a crate source.

Describe the solution you'd like
This would be very similar to cargo vendor but would accept an arbitrary crate and version and not require a manifest. Perhaps https://github.com/ehuss/cargo-clone-crate or https://github.com/JanLikar/cargo-clone could be integrated or something entirely new created from existing code. Cargo obviously has the ability to fetch crate source from a registry, I'd just like to be able to specify what exactly to fetch from a customizable registry and where to put it.

Notes
This request is partially related to #8708 and inspired by google/cargo-raze#218. Cargo-raze now handles binary dependencies in a unique way this is fine for the time being but the ability to use cargo to fetch a crate's source from a registry would simplify things.

@UebelAndre UebelAndre added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Nov 23, 2020
@ehuss
Copy link
Contributor

ehuss commented Nov 30, 2020

Closing as a duplicate of #1545, though feel free to leave a comment if I misunderstood the request.

@ehuss ehuss closed this as completed Nov 30, 2020
@UebelAndre
Copy link
Author

Ah thanks, I missed that ticket. Closing as duplicate is the right thing to do here. 🙏

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

2 participants