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

Registry tries to update on every build/test #991

Closed
Ryman opened this issue Nov 29, 2014 · 4 comments · Fixed by #1019
Closed

Registry tries to update on every build/test #991

Ryman opened this issue Nov 29, 2014 · 4 comments · Fixed by #1019

Comments

@Ryman
Copy link

Ryman commented Nov 29, 2014

$ cargo build -v
Updating registry `https://github.com/rust-lang/crates.io-index`
       Fresh ..
       Fresh ..
       Fresh ..
       Fresh ..
       Fresh ..
$ cargo test -v
Updating registry `https://github.com/rust-lang/crates.io-index`
       Fresh ..
       Fresh ..
       Fresh ..
       Fresh ..
       Fresh ..
Running ..

With spotty internet the time to perform the "updating registry" task dominates the test cycle time.

Platform: OSX 10.9
cargo version: cargo 0.0.1-pre-nightly (e1dc4bc 2014-11-25 21:59:15 +0000)
rustc version: rustc 0.13.0-nightly (fac5a0767 2014-11-26 22:37:06 +0000)
(will update bug when rustup finishes)

cc @huonw

@Ryman
Copy link
Author

Ryman commented Nov 29, 2014

Still repro on:

cargo 0.0.1-pre-nightly (d6dbce7 2014-11-27 20:59:12 +0000)
rustc 0.13.0-nightly (fac5a0767 2014-11-26 22:37:06 +0000)

@tupshin
Copy link

tupshin commented Nov 30, 2014

This happens on one of my projects, but not another. very similar structure. The only notable difference is that the one that keeps doing updates has github dependencies, whereas the one that does not only has a cargo registry dependency. Do non-registry dependencies trigger this?

@seanmonstar
Copy link

I hit this ever build when working on hyper. It actually impeded work I tried to do on a plane, since it couldn't connect to the registry. I tried to discover an option to force it to skip that step, but failed.

@pzol
Copy link

pzol commented Dec 5, 2014

+1 happens every time

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Dec 8, 2014
It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes rust-lang#991
bors added a commit that referenced this issue Dec 8, 2014
It turns out that the registry was being queried with git dependencies as well,
so this commit alters the core registry not query sources with dependencies that
did not originate from the source.

Closes #991
@bors bors closed this as completed in #1019 Dec 8, 2014
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 a pull request may close this issue.

4 participants