-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[aria2] use env variable to use aria2 download tool #18171
Conversation
Okay, I will take over this PR. |
it might require also cenit/vcpkg-tool@2364e22 I can open a PR also on vcpkg-tool if it's the right way to proceed with this problem |
it works locally (together with the PR on the vcpkg-tool microsoft/vcpkg-tool#85), I hope the same is valid for anyone willing to try. I am sorry for the full rebuild that this PR is triggering, but I hope for this PR to be considered for merging. The full rebuild is totally unnecessary because it's using the "old" vcpkg-tool and in any case would not have the env variable defined even using the newer one main reason for this PR: I don't know why, but cmake built-in download is really very broken on windows behind proxy, while at the same time aria2 always works flawlessy |
@strega-nil @strega-nil-ms please let me know if the modification is not coherent with the idea behind env variables. To pilot vcpkg in manifest mode they are almost the only way that I know |
@JackBoosY any news here (and vcpkg-tool related PR)? it might be very useful for people behind corporate firewalls! |
Oh sorry, last week I'm working on #18201. |
merged with master just to be sure that the recent #13639 was not interfering in the logic. |
We'd really like to see the aria functionality moved into the vcpkg tool and remove the remaining workaround in |
@ras0219-msft Can you describe it in more detail? |
with or without using libaria2? https://github.com/aria2/aria2#libaria2 |
also, is this PR even considered for now or would you prefer a full solution immediately with aria/aria-like download integrated into vcpkg? |
This is not correct because you've bypassed the part that acquires aria2 in the first place; I think if you want to do this it really does need to be in the tool proper (and it needs to be validity checked instead of an open ended string like this... the current leading underscore form is OK because we know where it's being set...) |
The idea is not that vcpkg should implement HTTP, but rather that:
Therefore, it makes sense that vcpkg is the uniform entry point for all downloading; it then internally can dispatch to whatever mechanism is appropriate (WinHTTP, curl, aria2). I'd prefer to avoid this half-solution, since we know we need to move all download functionality into the tool very soon. |
ok, understood. Closing the PR, and looking forward to seeing the new unified architecture :) |
Describe the pull request
What does your PR fix?
Fixes [aria2] use environment variable to select download tool #17934
Which triplets are supported/not supported? Have you updated the CI baseline?
<N/A>
Does your PR follow the maintainer guide?
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?@JackBoosY it seems easier than expected.
I added a VCPKG_DOWNLOAD_TOOL env variable symmetric to the already-in-use _VCPKG_DOWNLOAD_TOOL managed by the cli switch
--x-use-aria2