-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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_download_distfile] Fix the parameter mismatch issues of some internal functions and fix the recursive call (step 3) #20585
Conversation
…_distfile_test_hash
@strega-nil-ms
|
One small note: it's Other than that, thanks, looking forward to it :) |
Ping @strega-nil-ms for review this PR. |
Thank you, this works for #20648 |
Tagging requires:discussion to decide if we want to route fetching aria2 through |
Fine, I will change aria2 as a vcpkg requires tools. |
I will test this changes in my private mirror tonight. |
This PR also needs to update the vcpkg min version. |
Checked with my private mirror: success. |
Is the PR stuck? |
No, but since it effectively triggers a world rebuild it's slow going because a build failure pretty much anywhere forces a lot of compute time so cycle time is long |
Depends on #21344. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
For tensorflow and tensorflow-cc regression:
@BillyONeal Any ideas to solve this? |
Thanks for the fix for aria2. :) |
Thank you! One more question: how are we supposed to use Aria2 now? I noticed the |
It shouldn't be gone, but we did remove some x- switches from help text recently in order to reduce console spew. |
Oh I see thanks, where can I find those flags if not printed on the console? Just to know for the future :) Thanks! //EDIT: Nvm, found it! https://github.com/microsoft/vcpkg-tool/blob/main/src/vcpkg/install.cpp#L795 |
Just be aware that -x'd things can go away :) |
Is there a long term flag I can rely upon then? Maybe via CMake? |
Not for this aria2 setting. My limited understanding is that it was x-'d because we don't really have a concrete case for it to be a strongly supported option. Someone contributed it, and as long as we have no reason to break it, we aren't going to. But we also aren't testing it etc. like non x-'d scenarios, resulting in bugs like the one that spawned this PR in the first place. That aria2's licensing isn't compatible with ours so we can't distribute together, and we have this catch22 problem of needing to use something else to download it in the first place, remains kind of an issue here. |
Do you think it's possible to open a discussion with ARIA2 author somehow to dual license the project to fit the needs of vcpkg? |
No idea. Either way it would depend on a better understanding of why someone is attempting to replace it with aria2 in the first place. |
Progress:
step1: [vcpkg] Add aria2 as vcpkg required tool (step 1) #20971
step2: Add aria2 to tools list (step 2) vcpkg-tool#229
step3: [vcpkg_download_distfile] Fix the parameter mismatch issues of some internal functions and fix the recursive call (step 3) #20585
Issue:
--x-use-aria2
:Fixes [z_vcpkg_download_distfile_test_hash] Some parameters are incorrect #20574 vcpkg fails to download files using --x-use-aria2 when destination folder/directory does not previously exist #10199