-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Merge cargo-clone subcommand into cargo itself. #5501
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Interesting! @dethoter am I correct that the semantics of current implementation of I wonder what semantics we actually want here: current implementation seems more precise, in that we get exactly the source code that was uploaded to crates.io, but "checkout the real repository" seems to be a more useful one perhaps? @joshtriplett what do you think about this? Should |
@matklad I'd like to have both. I do think there's value in "download and unpack the crate", especially for crates that don't list a git repository URL. But I don't think that should be called |
@matklad you are right - in this PR
@matklad @joshtriplett does any of them work for you? Also, I've just thought about the command duplication. Won't we have a conflict between an installed |
cc #2640 |
The built-in would silently override the external command. |
We discussed this in the @rust-lang/cargo team meeting, and had a few bits of (somewhat fuzzy) feedback. First: while we definitely think commands like this should exist, we're not sure that we should merge this into cargo itself rather than leaving it in the crates ecosystem. (Our apologies for going back and forth a bit on that point.) Particularly because we're not sure exactly what the set of commands should be, as evidenced by some of the back-and-forth in this and other issues about what they should do (or be named). Second, with respect to repository-based cloning, we realized that there's way too much policy wrapped up in such a command to come anywhere close to standardizing it yet. Leaving aside issues like "is an We're wondering if we should just have a |
Thank you for the reply. Feel free to close or rebase when the team commits a decision someday. |
Ok I'm gonna close this, but we can of course reconsider with the discussion points above resolved! |
#1545
Merge cargo-clone subcommand into cargo itself.
Tests mostly copy-pasted from
install
subcommand. I just adjusted them a little bit.Should we refactor and merge some parts of
install
andclone
tests?