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 a number of progress indicators to Cargo #4646

Merged
merged 1 commit into from
Nov 6, 2017

Commits on Nov 6, 2017

  1. Add a number of progress indicators to Cargo

    This commit is an attempt to stem the tide of "cargo is stuck updating the
    registry" issues by giving a better indication as to what's happening in
    long-running steps. The primary addition here is a `Progress` helper module
    which prints and manages a progress bar for long-running operations like git
    fetches, git checkouts, HTTP downloads, etc.
    
    The second addition here is to print out when we've been stuck in resolve for
    some time. We never really have a progress indicator for crate graph resolution
    nor do we know when we're done updating sources. Instead we make a naive
    assumption that when you've spent 0.5s in the resolution loop itself (not
    updating deps) you're probably done updating dependencies and on to acutal
    resolution. This will print out `Resolving crate graph...` and help inform that
    Cargo is indeed not stuck looking at the registry, but rather it's churning away
    in resolution.
    alexcrichton committed Nov 6, 2017
    Configuration menu
    Copy the full SHA
    143b060 View commit details
    Browse the repository at this point in the history