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

[vcpkg docs] Improve vcpkg command related documents #12811

Closed
humfrey28whu opened this issue Aug 8, 2020 · 9 comments
Closed

[vcpkg docs] Improve vcpkg command related documents #12811

humfrey28whu opened this issue Aug 8, 2020 · 9 comments
Assignees
Labels
category:documentation To resolve the issue, documentation will need to be updated

Comments

@humfrey28whu
Copy link


Is your feature request related to a problem? Please describe.
The download and compilation time of vcpkg is relatively long. So during this waiting period, I would rather go play a game, have a cup of coffee or do some other work. But, but, but! ! !
When the network is not good, vcpkg will always interrupt because it has not downloaded the complete package, which is very annoying! ! ! This makes me have to stare at the screen all the time, watching vcpkg from downloading to compiling and installing, in case any package download fails and the compilation is interrupted.

Proposed solution
So my suggestion is: at the beginning of the installation, list all dependent packages and their download links, and indicate which packages already exist.
So I can find a place where the network is stable, download all the dependent packages, put them in the specified directory, and then start compiling directly. In this way, I can go to drink my coffee without worries.

Describe alternatives you've considered
I think the file vcpkg/scripts/cmake/vcpkg_download_distfile.cmake should be modified, but I don't know how to do and hope you can give me some guidance. On the other hand, I would appreciate it if you can take my advice and update the source code.

@StarGate-One
Copy link
Contributor

Have you tried vcpkg install port port port --only-downloads to download all the requested port packages and their dependencies then follow-up with vcpkg install port port port to actually install them?

@JackBoosY
Copy link
Contributor

You may need to use the argument --only-downloads.

@JackBoosY JackBoosY added the category:question This issue is a question label Aug 10, 2020
@humfrey28whu
Copy link
Author

@StarGate-One @JackBoosY Thank You! It does work! I think I should read a product manual before I use vcpkg. And if I want to learn more parameter usage, which document should I check? Thank you very much!

@JackBoosY
Copy link
Contributor

@Huang88888888Fei Sadly, our documents are not complete and we will improve them in the future.

@JackBoosY JackBoosY added category:documentation To resolve the issue, documentation will need to be updated and removed category:question This issue is a question labels Aug 10, 2020
@JackBoosY JackBoosY changed the title I want to get the download links of all dependent packages at once! [vcpkg docs] Improve vcpkg command related documents Aug 10, 2020
@humfrey28whu
Copy link
Author

@Huang88888888Fei Sadly, our documents are not complete and we will improve them in the future.

Yeah, looking forward to it! Thank you again. I think I can close this issue.

@JackBoosY
Copy link
Contributor

Please keep this issue open util we solve it.

@JackBoosY JackBoosY reopened this Aug 10, 2020
@GopherJ
Copy link

GopherJ commented Feb 10, 2021

Also it seems that vcpkg uses raw.githubusercontent.com while building boost, due to GFW's limitation, it always fail. I'm wondering if there is a solution for this?

@JackBoosY
Copy link
Contributor

@GopherJ Waiting for the mirror PR merge, I will create a Chinese mirror.

@PhoebeHui
Copy link
Contributor

Confirmed with Jack, the mirror PR has been merged, so this issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation To resolve the issue, documentation will need to be updated
Projects
None yet
Development

No branches or pull requests

5 participants