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

Don't print crates.io-index URL when Updating #5990

Merged
merged 3 commits into from
Sep 9, 2018

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Sep 7, 2018

Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).

Before:

$ cargo install lazy_static
    Updating registry `https://github.com/rust-lang/crates.io-index`

After:

$ dcargo install lazy_static
    Updating crates.io index

Fixes #4208

Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).

Before:

    $ cargo install lazy_static
        Updating registry `https://github.com/rust-lang/crates.io-index`

After:

    $ dcargo install lazy_static
        Updating registry
@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Thanks! I wonder though if we could perhaps print out Updating crates.io index? That makes it a bit clearer it's crates.io, and I never did quite like the "registry" name there. We could also say index for other registries as well, but I'm fine holding off on that change!

@dwijnand
Copy link
Member Author

dwijnand commented Sep 7, 2018

Sounds fine to me. Will do.

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Sep 9, 2018

📌 Commit 41aa6fb has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Sep 9, 2018

⌛ Testing commit 41aa6fb with merge 5984312...

bors added a commit that referenced this pull request Sep 9, 2018
Don't print crates.io-index URL when Updating

Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).

Before:

    $ cargo install lazy_static
        Updating registry `https://github.com/rust-lang/crates.io-index`

After:

    $ dcargo install lazy_static
        Updating crates.io index

Fixes #4208
@bors
Copy link
Contributor

bors commented Sep 9, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5984312 to master...

@bors bors merged commit 41aa6fb into rust-lang:master Sep 9, 2018
@dwijnand dwijnand deleted the no-crates.io-index-url branch September 10, 2018 01:16
@ehuss ehuss added this to the 1.30.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support specifying API location everywhere rather than requiring specifying index location
5 participants