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

Print progress data for a slow git operation #4261

Closed
antoyo opened this issue Jul 8, 2017 · 4 comments
Closed

Print progress data for a slow git operation #4261

antoyo opened this issue Jul 8, 2017 · 4 comments
Labels
A-console-output Area: Terminal output, colors, progress bar, etc. A-git Area: anything dealing with git C-enhancement Category: enhancement Command-update

Comments

@antoyo
Copy link

antoyo commented Jul 8, 2017

Hello.
When I have this git dependency https://github.com/dtolnay/syn, cargo update hangs when trying to fetch it.
I waited 30 minutes without any progress.
I'm able to clone it manually with git.
Here's the log from cargo update:

TRACE:cargo::sources::git::source: updating git source `GitRemote { url: "https://github.com/dtolnay/syn" }`
INFO:cargo::sources::git::utils: update submodules for: "~/.cargo/git/checkouts/syn-6f4912dca572d3ab/0aa50e0/"

I don't know if it is related to the other issues mentionning a freeze.
Thanks to fix this issue.

@alexcrichton
Copy link
Member

I think this is just a case of libgit2 doing a slow clone. The syn repo has a submodule to rust-lang/rust, which takes a long time to clone.

@antoyo
Copy link
Author

antoyo commented Jul 10, 2017

It seems this is it.
Should we provide some output so that the users know that something is happening when it's very slow?

@alexcrichton
Copy link
Member

Certainly yeah!

@antoyo antoyo changed the title Cargo update hangs when cloning some git repositories Print progress data for a slow git operation Jul 10, 2017
@carols10cents carols10cents added A-git Area: anything dealing with git C-enhancement Category: enhancement Command-update labels Aug 30, 2017
@carols10cents carols10cents added the A-console-output Area: Terminal output, colors, progress bar, etc. label Sep 29, 2017
@antoyo
Copy link
Author

antoyo commented Nov 22, 2017

I think we can close this issue as cargo now shows a progress bar.

@antoyo antoyo closed this as completed Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-console-output Area: Terminal output, colors, progress bar, etc. A-git Area: anything dealing with git C-enhancement Category: enhancement Command-update
Projects
None yet
Development

No branches or pull requests

3 participants