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

Introduce Source::download_now #6637

Merged
merged 1 commit into from
Feb 9, 2019

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Feb 5, 2019

Fixes #6518

@rust-highfive
Copy link

r? @Eh2406

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

@dwijnand
Copy link
Member Author

dwijnand commented Feb 5, 2019

lol

= note: required because of the requirements on the impl of `core::source::Source` for `&mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut sources::git::source::GitSource`

@dwijnand dwijnand force-pushed the introduce-Source.download_now branch from 65499ab to 01ecedd Compare February 5, 2019 19:31
@dwijnand
Copy link
Member Author

dwijnand commented Feb 6, 2019

Huh, I couldn't reproduce the error because it doesn't reproduce with check, only with build, which seems very strange.

@dwijnand
Copy link
Member Author

dwijnand commented Feb 6, 2019

Looks like maybe I'm hitting rust-lang/rust#50043?

@dwijnand
Copy link
Member Author

dwijnand commented Feb 6, 2019

Ah https://stackoverflow.com/a/25463033/463761 I need to use self: Box

@dwijnand dwijnand force-pushed the introduce-Source.download_now branch from 01ecedd to 643d258 Compare February 6, 2019 15:03
@Eh2406
Copy link
Contributor

Eh2406 commented Feb 8, 2019

Should this have a test or at least some thing to make sure that we don't remove it as dead code?

@dwijnand
Copy link
Member Author

dwijnand commented Feb 8, 2019

It's used in src/cargo/ops/common_for_install_and_uninstall.rs. That could change, of course, but we don't (yet!) have a practice of testing cargo lib APIs.

@Eh2406
Copy link
Contributor

Eh2406 commented Feb 8, 2019

In that case r+ for me when you're happy with it.

@dwijnand
Copy link
Member Author

dwijnand commented Feb 9, 2019

@bors r=@Eh2406

@bors
Copy link
Contributor

bors commented Feb 9, 2019

📌 Commit 643d258 has been approved by @Eh2406

@bors
Copy link
Contributor

bors commented Feb 9, 2019

⌛ Testing commit 643d258 with merge 9118c7f...

bors added a commit that referenced this pull request Feb 9, 2019
@bors
Copy link
Contributor

bors commented Feb 9, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: @Eh2406
Pushing 9118c7f to master...

@bors bors merged commit 643d258 into rust-lang:master Feb 9, 2019
@dwijnand dwijnand deleted the introduce-Source.download_now branch February 9, 2019 05:52
bors added a commit to rust-lang/rust that referenced this pull request Feb 10, 2019
Bump cargo to 865cb70

Merged PRs:

* Replace util::without_prefix with Path::strip_prefix rust-lang/cargo#6620
* keep track of crates that are whitelisted to be used even if yanked rust-lang/cargo#6611
* Fix default DYLD_FALLBACK_LIBRARY_PATH on MacOS. rust-lang/cargo#6625
* Bail when trying to run "test --doc --no-run" rust-lang/cargo#6628
* In cargo test's help, add that examples are built rust-lang/cargo#6619
* Extract & re-use filter_targets in cargo_compile rust-lang/cargo#6621
* Test cleanup: remove unnecessary with_status(0) rust-lang/cargo#6630
* Fix run's help message rust-lang/cargo#6631
* Some updates to bash completion. rust-lang/cargo#6644
* Introduce Source::download_now rust-lang/cargo#6637
* Switch from unused_imports to deprecated to test unfixable warnings rust-lang/cargo#6649
bors added a commit to rust-lang/rust that referenced this pull request Feb 11, 2019
Bump cargo to 865cb70

Merged PRs:

* Replace util::without_prefix with Path::strip_prefix rust-lang/cargo#6620
* keep track of crates that are whitelisted to be used even if yanked rust-lang/cargo#6611
* Fix default DYLD_FALLBACK_LIBRARY_PATH on MacOS. rust-lang/cargo#6625
* Bail when trying to run "test --doc --no-run" rust-lang/cargo#6628
* In cargo test's help, add that examples are built rust-lang/cargo#6619
* Extract & re-use filter_targets in cargo_compile rust-lang/cargo#6621
* Test cleanup: remove unnecessary with_status(0) rust-lang/cargo#6630
* Fix run's help message rust-lang/cargo#6631
* Some updates to bash completion. rust-lang/cargo#6644
* Introduce Source::download_now rust-lang/cargo#6637
* Switch from unused_imports to deprecated to test unfixable warnings rust-lang/cargo#6649
@ehuss ehuss added this to the 1.34.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.

Downloading a single package is much more painful on master than on 0.31
5 participants